X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/2236410f4582ab45ae8c384dd6eeeef5d10aab15..bef1210245bb3180a57f26405369654eaa477f63:/lunaix-os/hal/rng/rngx86.c diff --git a/lunaix-os/hal/rng/rngx86.c b/lunaix-os/hal/rng/rngx86.c index d732f2c..2dd6d08 100644 --- a/lunaix-os/hal/rng/rngx86.c +++ b/lunaix-os/hal/rng/rngx86.c @@ -35,7 +35,7 @@ pdev_randdev_init(struct device_def* devdef) 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; } @@ -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), - .init = pdev_randdev_init -}; + .init = pdev_randdev_init}; EXPORT_DEVICE(randdev, &devrandx86_def, load_onboot); \ No newline at end of file