diff options
author | Shubhrajyoti D <shubhrajyoti@ti.com> | 2012-01-04 09:15:28 -0500 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2012-01-06 10:33:31 -0500 |
commit | e2bf7c4c22939bd83814d8da40a352d246030b1b (patch) | |
tree | 703eb367c33fc90dbe81b12003b84b992234ea9b /drivers/watchdog | |
parent | dc3c56b703dad4aec8a9b3dd86f03a90d0c26a2d (diff) |
watchdog: omap_wdt.c: fix the WDIOC_GETBOOTSTATUS ioctl if not implemented.
WDIOC_GETBOOTSTATUS ioctl is imlemented for cpu_is_omap16xx and cpu_is_omap24xx
cpus only. For other cpus it falls through to WDIOC_KEEPALIVE.
This patch prevents the fall through.
Cc: sricharan <r.sricharan@ti.com>
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/omap_wdt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c index 324f525ea8d2..4b33e3fd726b 100644 --- a/drivers/watchdog/omap_wdt.c +++ b/drivers/watchdog/omap_wdt.c | |||
@@ -232,6 +232,7 @@ static long omap_wdt_ioctl(struct file *file, unsigned int cmd, | |||
232 | if (cpu_is_omap24xx()) | 232 | if (cpu_is_omap24xx()) |
233 | return put_user(omap_prcm_get_reset_sources(), | 233 | return put_user(omap_prcm_get_reset_sources(), |
234 | (int __user *)arg); | 234 | (int __user *)arg); |
235 | return put_user(0, (int __user *)arg); | ||
235 | case WDIOC_KEEPALIVE: | 236 | case WDIOC_KEEPALIVE: |
236 | pm_runtime_get_sync(wdev->dev); | 237 | pm_runtime_get_sync(wdev->dev); |
237 | spin_lock(&wdt_lock); | 238 | spin_lock(&wdt_lock); |