2-setup_gdt.md (#22)
[lunaix-os.git] / lunaix-os / hal / rng / rngx86.c
index 3035f314dc6b238ca3f56afc0c20d791667845ae..2dd6d089ba5e42b513c5c1d95ca075697a659ff4 100644 (file)
@@ -35,7 +35,7 @@ pdev_randdev_init(struct device_def* devdef)
     devrand->ops.read = __rand_rd;
     devrand->ops.read_page = __rand_rd_pg;
 
     devrand->ops.read = __rand_rd;
     devrand->ops.read_page = __rand_rd_pg;
 
-    device_register(devrand, &devdef->class, "rand");
+    register_device(devrand, &devdef->class, "rand");
 
     return 0;
 }
 
     return 0;
 }
@@ -43,6 +43,5 @@ pdev_randdev_init(struct device_def* devdef)
 static struct device_def devrandx86_def = {
     .name = "x86 On-Chip RNG",
     .class = DEVCLASS(DEVIF_SOC, DEVFN_CHAR, DEV_RNG),
 static struct device_def devrandx86_def = {
     .name = "x86 On-Chip RNG",
     .class = DEVCLASS(DEVIF_SOC, DEVFN_CHAR, DEV_RNG),
-    .init = pdev_randdev_init
-};
-EXPORT_DEVICE(randdev, &devrandx86_def, load_earlystage);
\ No newline at end of file
+    .init = pdev_randdev_init};
+EXPORT_DEVICE(randdev, &devrandx86_def, load_onboot);
\ No newline at end of file