refactor: add a async read/write variant to device ops, with allow async io to be...
[lunaix-os.git] / lunaix-os / hal / char / devnull.c
index 9806dc0359ec953f0573d7f2459234e854350227..747e05f315693c560f6c78e23a2a5dbf301b81c2 100644 (file)
@@ -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
-};
-EXPORT_DEVICE(nulldev, &devnull_def, load_earlystage);
+    .init = pdev_nulldev_init};
+EXPORT_DEVICE(nulldev, &devnull_def, load_onboot);