X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/8fce4520de1f257819b16f9253fa28dcdae743f4..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 af11802..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;