aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/riowd.c
diff options
context:
space:
mode:
authorWim Van Sebroeck <wim@iguana.be>2009-01-21 06:13:11 -0500
committerWim Van Sebroeck <wim@iguana.be>2009-03-25 04:54:57 -0400
commit9626dd75c57360666f4cdcb660c1672ee9f952e8 (patch)
tree1d746ff1304b7751b9229faa73c9151381f07421 /drivers/watchdog/riowd.c
parent8e0ee43bc2c3e19db56a4adaa9a9b04ce885cd84 (diff)
[WATCHDOG] cpwd.c & riowd.c - unlocked_ioctl
Switch to unlocked_ioctl Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/riowd.c')
-rw-r--r--drivers/watchdog/riowd.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/watchdog/riowd.c b/drivers/watchdog/riowd.c
index 09cb1833ea27..01cc7e39d92f 100644
--- a/drivers/watchdog/riowd.c
+++ b/drivers/watchdog/riowd.c
@@ -86,8 +86,7 @@ static int riowd_release(struct inode *inode, struct file *filp)
86 return 0; 86 return 0;
87} 87}
88 88
89static int riowd_ioctl(struct inode *inode, struct file *filp, 89static long riowd_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
90 unsigned int cmd, unsigned long arg)
91{ 90{
92 static struct watchdog_info info = { 91 static struct watchdog_info info = {
93 .options = WDIOF_SETTIMEOUT, 92 .options = WDIOF_SETTIMEOUT,
@@ -160,12 +159,12 @@ static ssize_t riowd_write(struct file *file, const char __user *buf, size_t cou
160} 159}
161 160
162static const struct file_operations riowd_fops = { 161static 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
171static struct miscdevice riowd_miscdev = { 170static struct miscdevice riowd_miscdev = {