diff options
Diffstat (limited to 'drivers/watchdog/riowd.c')
-rw-r--r-- | drivers/watchdog/riowd.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/drivers/watchdog/riowd.c b/drivers/watchdog/riowd.c index 09cb1833ea27..1e8f02f440e6 100644 --- a/drivers/watchdog/riowd.c +++ b/drivers/watchdog/riowd.c | |||
@@ -14,9 +14,8 @@ | |||
14 | #include <linux/watchdog.h> | 14 | #include <linux/watchdog.h> |
15 | #include <linux/of.h> | 15 | #include <linux/of.h> |
16 | #include <linux/of_device.h> | 16 | #include <linux/of_device.h> |
17 | 17 | #include <linux/io.h> | |
18 | #include <asm/io.h> | 18 | #include <linux/uaccess.h> |
19 | #include <asm/uaccess.h> | ||
20 | 19 | ||
21 | 20 | ||
22 | /* RIO uses the NatSemi Super I/O power management logical device | 21 | /* RIO uses the NatSemi Super I/O power management logical device |
@@ -86,8 +85,7 @@ static int riowd_release(struct inode *inode, struct file *filp) | |||
86 | return 0; | 85 | return 0; |
87 | } | 86 | } |
88 | 87 | ||
89 | static int riowd_ioctl(struct inode *inode, struct file *filp, | 88 | static long riowd_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) |
90 | unsigned int cmd, unsigned long arg) | ||
91 | { | 89 | { |
92 | static struct watchdog_info info = { | 90 | static struct watchdog_info info = { |
93 | .options = WDIOF_SETTIMEOUT, | 91 | .options = WDIOF_SETTIMEOUT, |
@@ -147,7 +145,8 @@ static int riowd_ioctl(struct inode *inode, struct file *filp, | |||
147 | return 0; | 145 | return 0; |
148 | } | 146 | } |
149 | 147 | ||
150 | static ssize_t riowd_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) | 148 | static ssize_t riowd_write(struct file *file, const char __user *buf, |
149 | size_t count, loff_t *ppos) | ||
151 | { | 150 | { |
152 | struct riowd *p = riowd_device; | 151 | struct riowd *p = riowd_device; |
153 | 152 | ||
@@ -160,12 +159,12 @@ static ssize_t riowd_write(struct file *file, const char __user *buf, size_t cou | |||
160 | } | 159 | } |
161 | 160 | ||
162 | static const struct file_operations riowd_fops = { | 161 | static const struct file_operations riowd_fops = { |
163 | .owner = THIS_MODULE, | 162 | .owner = THIS_MODULE, |
164 | .llseek = no_llseek, | 163 | .llseek = no_llseek, |
165 | .ioctl = riowd_ioctl, | 164 | .unlocked_ioctl = riowd_ioctl, |
166 | .open = riowd_open, | 165 | .open = riowd_open, |
167 | .write = riowd_write, | 166 | .write = riowd_write, |
168 | .release = riowd_release, | 167 | .release = riowd_release, |
169 | }; | 168 | }; |
170 | 169 | ||
171 | static struct miscdevice riowd_miscdev = { | 170 | static struct miscdevice riowd_miscdev = { |