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