X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/f044ca812256b421e793c4335ce1ffed74710a70..6f6da1abb22dff69dbb710bd2fd9d95f083f2b43:/lunaix-os/hal/rng/rngx86.c?ds=sidebyside diff --git a/lunaix-os/hal/rng/rngx86.c b/lunaix-os/hal/rng/rngx86.c index bb069d7..f398c66 100644 --- a/lunaix-os/hal/rng/rngx86.c +++ b/lunaix-os/hal/rng/rngx86.c @@ -31,7 +31,7 @@ __rand_rd(struct device* dev, void* buf, size_t offset, size_t len) int pdev_randdev_init(struct device_def* devdef) { - struct device* devrand = device_addseq(NULL, NULL, "rand"); + struct device* devrand = device_addseq(NULL, &devdef->class, NULL, "rand"); devrand->ops.read = __rand_rd; devrand->ops.read_page = __rand_rd_pg; @@ -39,7 +39,7 @@ pdev_randdev_init(struct device_def* devdef) } static struct device_def devrandx86_def = { - .name = "null", + .name = "x86 On-Chip RNG", .class = DEVCLASS(DEVIF_SOC, DEVFN_CHAR, DEV_RNG, 0), .init = pdev_randdev_init };