]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: w83627hf: Enable watchdog device only if not already enabled
authorGuenter Roeck <linux@roeck-us.net>
Sat, 17 Aug 2013 20:58:41 +0000 (13:58 -0700)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 18 Nov 2013 20:34:13 +0000 (21:34 +0100)
commitf788405434a9f2f312b68fcbd6201db771bb5ea2
tree720b6be69743d35460470f9eca953c0531755e02
parentc99616031931bc7896f1eb5f86ced0d9f2f74d0a
watchdog: w83627hf: Enable watchdog device only if not already enabled

There is no need to enable the watchdog device if it is already enabled.
Also, when enabling the watchdog device, only set the watchdog device
enable bit and do not touch other bits; depending on the chip type,
those bits may enable other functionality.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/w83627hf_wdt.c