Skip to content

Commit

Permalink
watchdog: f71808e_wdt: Fix WDTMOUT_STS register read
Browse files Browse the repository at this point in the history
  • Loading branch information
Knud Poulsen authored and Wim Van Sebroeck committed May 14, 2016
1 parent 85c130a commit b97cb21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/watchdog/f71808e_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@

#define F71808FG_FLAG_WDOUT_EN 7

#define F71808FG_FLAG_WDTMOUT_STS 5
#define F71808FG_FLAG_WDTMOUT_STS 6
#define F71808FG_FLAG_WD_EN 5
#define F71808FG_FLAG_WD_PULSE 4
#define F71808FG_FLAG_WD_UNIT 3
Expand Down Expand Up @@ -670,7 +670,7 @@ static int __init watchdog_init(int sioaddr)
superio_select(watchdog.sioaddr, SIO_F71808FG_LD_WDT);

wdt_conf = superio_inb(sioaddr, F71808FG_REG_WDT_CONF);
watchdog.caused_reboot = wdt_conf & F71808FG_FLAG_WDTMOUT_STS;
watchdog.caused_reboot = wdt_conf & BIT(F71808FG_FLAG_WDTMOUT_STS);

superio_exit(sioaddr);

Expand Down

0 comments on commit b97cb21

Please sign in to comment.