Commit e2bf7c4c22939bd83814d8da40a352d246030b1b

Authored by Shubhrajyoti D
Committed by Wim Van Sebroeck
1 parent dc3c56b703

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/watchdog/omap_wdt.c
... ... @@ -232,6 +232,7 @@
232 232 if (cpu_is_omap24xx())
233 233 return put_user(omap_prcm_get_reset_sources(),
234 234 (int __user *)arg);
  235 + return put_user(0, (int __user *)arg);
235 236 case WDIOC_KEEPALIVE:
236 237 pm_runtime_get_sync(wdev->dev);
237 238 spin_lock(&wdt_lock);