Commit 1bf1496d authored by Wim Van Sebroeck's avatar Wim Van Sebroeck

[WATCHDOG] omap_wdt.c - default error for IOCTL is -ENOTTY

The default value for an unknown ioctl call is -ENOTTY.
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 6abe78bf
...@@ -197,7 +197,7 @@ omap_wdt_ioctl(struct inode *inode, struct file *file, ...@@ -197,7 +197,7 @@ omap_wdt_ioctl(struct inode *inode, struct file *file,
switch (cmd) { switch (cmd) {
default: default:
return -ENOIOCTLCMD; return -ENOTTY;
case WDIOC_GETSUPPORT: case WDIOC_GETSUPPORT:
return copy_to_user((struct watchdog_info __user *)arg, &ident, return copy_to_user((struct watchdog_info __user *)arg, &ident,
sizeof(ident)); sizeof(ident));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment