diff options
Diffstat (limited to 'drivers/char/watchdog/mpcore_wdt.c')
-rw-r--r-- | drivers/char/watchdog/mpcore_wdt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/watchdog/mpcore_wdt.c b/drivers/char/watchdog/mpcore_wdt.c index 54b3c56ead0d..02d336ace504 100644 --- a/drivers/char/watchdog/mpcore_wdt.c +++ b/drivers/char/watchdog/mpcore_wdt.c | |||
@@ -221,7 +221,7 @@ static int mpcore_wdt_ioctl(struct inode *inode, struct file *file, | |||
221 | } uarg; | 221 | } uarg; |
222 | 222 | ||
223 | if (_IOC_DIR(cmd) && _IOC_SIZE(cmd) > sizeof(uarg)) | 223 | if (_IOC_DIR(cmd) && _IOC_SIZE(cmd) > sizeof(uarg)) |
224 | return -ENOIOCTLCMD; | 224 | return -ENOTTY; |
225 | 225 | ||
226 | if (_IOC_DIR(cmd) & _IOC_WRITE) { | 226 | if (_IOC_DIR(cmd) & _IOC_WRITE) { |
227 | ret = copy_from_user(&uarg, (void __user *)arg, _IOC_SIZE(cmd)); | 227 | ret = copy_from_user(&uarg, (void __user *)arg, _IOC_SIZE(cmd)); |
@@ -271,7 +271,7 @@ static int mpcore_wdt_ioctl(struct inode *inode, struct file *file, | |||
271 | break; | 271 | break; |
272 | 272 | ||
273 | default: | 273 | default: |
274 | return -ENOIOCTLCMD; | 274 | return -ENOTTY; |
275 | } | 275 | } |
276 | 276 | ||
277 | if (ret == 0 && _IOC_DIR(cmd) & _IOC_READ) { | 277 | if (ret == 0 && _IOC_DIR(cmd) & _IOC_READ) { |