watchdog: cadence_wdt: Fix the suspend resume
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Mon, 12 Sep 2016 07:23:49 +0000 (12:53 +0530)
committerWim Van Sebroeck <wim@iguana.be>
Sat, 24 Sep 2016 06:49:41 +0000 (08:49 +0200)
commiteadc4fe17d04723373ada219d382b3b413b21dad
tree18918db353efb3a565a8bffe188c657513998f1b
parentbfb1f46f69060642d54125cb777c817f3f9436e3
watchdog: cadence_wdt: Fix the suspend resume

Currently even if no users are there the suspend tries to
stop the watchdog and resume starts it.

so after resume the watchdog starts and resets the board.
Fix the same by adding a check for users.

Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/cadence_wdt.c