summaryrefslogtreecommitdiffstats
path: root/drivers/hw_random/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hw_random/core.c')
-rw-r--r--drivers/hw_random/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hw_random/core.c b/drivers/hw_random/core.c
index ef2a988c76..1c68a379f7 100644
--- a/drivers/hw_random/core.c
+++ b/drivers/hw_random/core.c
@@ -61,7 +61,7 @@ static ssize_t rng_dev_read(struct cdev *cdev, void *buf, size_t size,
return cur;
}
-static struct file_operations rng_chrdev_ops = {
+static struct cdev_operations rng_chrdev_ops = {
.read = rng_dev_read,
.lseek = dev_lseek_default,
};