]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit911e7302779bf79ca518a70cfec8454f810c8b76
treead3b2285aa5742cecb0c29f5ae252e21d5998f06
parent98414d8fcecbf024de745eda0f3577293d8b3502
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