summaryrefslogtreecommitdiffstats
path: root/drivers/char/watchdog/mpc83xx_wdt.c
diff options
context:
space:
mode:
authorWim Van Sebroeck <wim@iguana.be>2007-07-21 15:42:18 +0200
committerWim Van Sebroeck <wim@iguana.be>2007-07-23 19:26:49 +0200
commit5c4eb61b375ce16fc7af5055d8ab7bc19e788361 (patch)
tree764284501cf9474b4dfe4b8cf1409cacc85669a4 /drivers/char/watchdog/mpc83xx_wdt.c
parent[WATCHDOG] VFS clean-up (diff)
downloadlinux-5c4eb61b375ce16fc7af5055d8ab7bc19e788361.tar.xz
linux-5c4eb61b375ce16fc7af5055d8ab7bc19e788361.zip
[WATCHDOG] WDIOC_GETSTATUS and WDIOC_GETBOOTSTATUS clean-up
Add mandatory WDIOC_GETSTATUS and WDIOC_GETBOOTSTATUS ioctl's for drivers that don't have them yet. Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/char/watchdog/mpc83xx_wdt.c')
-rw-r--r--drivers/char/watchdog/mpc83xx_wdt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/watchdog/mpc83xx_wdt.c b/drivers/char/watchdog/mpc83xx_wdt.c
index 18ca752e2f90..a0bf95fb9763 100644
--- a/drivers/char/watchdog/mpc83xx_wdt.c
+++ b/drivers/char/watchdog/mpc83xx_wdt.c
@@ -119,6 +119,9 @@ static int mpc83xx_wdt_ioctl(struct inode *inode, struct file *file,
switch (cmd) {
case WDIOC_GETSUPPORT:
return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0;
+ case WDIOC_GETSTATUS:
+ case WDIOC_GETBOOTSTATUS:
+ return put_user(0, p);
case WDIOC_KEEPALIVE:
mpc83xx_wdt_keepalive();
return 0;