diff options
author | Igor Pylypiv <igor.pylypiv@gmail.com> | 2018-03-07 02:47:25 -0500 |
---|---|---|
committer | Wim Van Sebroeck <wim@linux-watchdog.org> | 2018-03-10 05:45:07 -0500 |
commit | 977f6f68331f94bb72ad84ee96b7b87ce737d89d (patch) | |
tree | 8f3da8965f0f4d530127bcbeafac1ee1ff902a9f | |
parent | 2b3d89b402b085b08498e896c65267a145bed486 (diff) |
watchdog: f71808e_wdt: Fix WD_EN register read
F71808FG_FLAG_WD_EN defines bit position, not a bitmask
Signed-off-by: Igor Pylypiv <igor.pylypiv@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Cc: stable <stable@vger.kernel.org>
-rw-r--r-- | drivers/watchdog/f71808e_wdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/f71808e_wdt.c b/drivers/watchdog/f71808e_wdt.c index 3a33c5344bd5..9a1c761258ce 100644 --- a/drivers/watchdog/f71808e_wdt.c +++ b/drivers/watchdog/f71808e_wdt.c | |||
@@ -496,7 +496,7 @@ static bool watchdog_is_running(void) | |||
496 | 496 | ||
497 | is_running = (superio_inb(watchdog.sioaddr, SIO_REG_ENABLE) & BIT(0)) | 497 | is_running = (superio_inb(watchdog.sioaddr, SIO_REG_ENABLE) & BIT(0)) |
498 | && (superio_inb(watchdog.sioaddr, F71808FG_REG_WDT_CONF) | 498 | && (superio_inb(watchdog.sioaddr, F71808FG_REG_WDT_CONF) |
499 | & F71808FG_FLAG_WD_EN); | 499 | & BIT(F71808FG_FLAG_WD_EN)); |
500 | 500 | ||
501 | superio_exit(watchdog.sioaddr); | 501 | superio_exit(watchdog.sioaddr); |
502 | 502 | ||