watchdog: coh901327_wdt: Keep clock enabled after loading driver
authorGuenter Roeck <linux@roeck-us.net>
Tue, 3 Jan 2017 11:03:27 +0000 (03:03 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 24 Feb 2017 22:00:23 +0000 (14:00 -0800)
commit14da8d427eb8ea10d8fb78a1264583bb9b279231
treead3b2285aa5742cecb0c29f5ae252e21d5998f06
parent01372ae13ba6a4792de2f4bd474f1374b5404448
watchdog: coh901327_wdt: Keep clock enabled after loading driver

Enabling the clock before accessing chip registers and disabling it
afterwards does not really make sense and only adds complexity to
the driver. In addition to that, a comment int the driver suggests
that it does not serve a useful purpose either.

"The watchdog block is of course always clocked, the
 clk_enable()/clk_disable() calls are mainly for performing reference
 counting higher up in the clock hierarchy."

Just keep the clock enabled instead.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/watchdog/coh901327_wdt.c