watchdog: JZ4740: Disable clock after stopping counter
authorPaul Cercueil <paul@crapouillou.net>
Thu, 10 May 2018 18:47:44 +0000 (20:47 +0200)
committerJames Hogan <jhogan@kernel.org>
Mon, 14 May 2018 22:58:23 +0000 (23:58 +0100)
commit212c105481ef9e76b972a91ae0ab477a9117ed2b
tree74789e6638c851a04b75376dab2491fdcedea578
parentaae22f16022600bae990ec4c2f2cb997c7393216
watchdog: JZ4740: Disable clock after stopping counter

Previously, the clock was disabled first, which makes the watchdog
component insensitive to register writes.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Cc: Wim Van Sebroeck <wim@linux-watchdog.org>
Cc: Mathieu Malaterre <malat@debian.org>
Cc: linux-watchdog@vger.kernel.org
Cc: linux-mips@linux-mips.org
Signed-off-by: James Hogan <jhogan@kernel.org>
drivers/watchdog/jz4740_wdt.c