Driver Core: misc: add nodename support for misc devices.
[safe/jmp/linux-2.6] / drivers / char / hw_random / core.c
index e5d583c..fc93e2f 100644 (file)
@@ -153,6 +153,7 @@ static const struct file_operations rng_chrdev_ops = {
 static struct miscdevice rng_miscdev = {
        .minor          = RNG_MISCDEV_MINOR,
        .name           = RNG_MODULE_NAME,
+       .devnode        = "hwrng",
        .fops           = &rng_chrdev_ops,
 };