X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/2236410f4582ab45ae8c384dd6eeeef5d10aab15..7b8a1bcad75628f9add4590db2bb9b8e418ee8eb:/lunaix-os/hal/char/devnull.c diff --git a/lunaix-os/hal/char/devnull.c b/lunaix-os/hal/char/devnull.c index 7dfd0a7..410f3ba 100644 --- a/lunaix-os/hal/char/devnull.c +++ b/lunaix-os/hal/char/devnull.c @@ -38,7 +38,7 @@ pdev_nulldev_init(struct device_def* def) devnull->ops.read_page = __null_rd_pg; devnull->ops.read = __null_rd; - device_register(devnull, &def->class, "null"); + register_device(devnull, &def->class, "null"); return 0; } @@ -46,6 +46,5 @@ pdev_nulldev_init(struct device_def* def) static struct device_def devnull_def = { .name = "null", .class = DEVCLASSV(DEVIF_NON, DEVFN_PSEUDO, DEV_NULL, DEV_BUILTIN_NULL), - .init = pdev_nulldev_init -}; + .init = pdev_nulldev_init}; EXPORT_DEVICE(nulldev, &devnull_def, load_onboot);