watchdog: omap_wdt.c: Fix the mismatch of pm_runtime enable and disable
authorShubhrajyoti D <shubhrajyoti@ti.com>
Wed, 11 Jan 2012 14:20:18 +0000 (19:50 +0530)
committerWim Van Sebroeck <wim@iguana.be>
Fri, 27 Jan 2012 08:53:53 +0000 (09:53 +0100)
commit12c583d8dca3320f36afe51e514dfa709ac0662e
tree42a98cc8f7b9efd0c4e3c46d384218c576e32d07
parent52ea9a7d7946c03aa1f9eeb71adb0191402724dd
watchdog: omap_wdt.c: Fix the mismatch of pm_runtime enable and disable

Currently the watchdog driver calls the pm_runtime_enable and never
the disable. This may cause a warning when pm_runtime_enable
checks for the count match.

Also fixes the error

/build/watchdog # insmod omap_wdt.ko
[   44.999389] omap_wdt omap_wdt: Unbalanced pm_runtime_enable!
[   45.011047] OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec
/build/watchdog #

Attempting to fix the same by calling pm_runtime_disable.

Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/omap_wdt.c