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;
}
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
};