Skip to content

Commit

Permalink
watchdog: w83697ug_wdt: Fix set bit 0 to activate GPIO2
Browse files Browse the repository at this point in the history
outb_p(c || 0x01, WDT_EFDR); -> || should be |

Reported-By: Toralf Förster <toralf.foerster@gmx.de>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
  • Loading branch information
Wim Van Sebroeck committed Mar 14, 2011
1 parent 6899a8e commit 943413c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/watchdog/w83697ug_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ static int w83697ug_select_wd_register(void)
outb_p(0x08, WDT_EFDR); /* select logical device 8 (GPIO2) */
outb_p(0x30, WDT_EFER); /* select CR30 */
c = inb_p(WDT_EFDR);
outb_p(c || 0x01, WDT_EFDR); /* set bit 0 to activate GPIO2 */
outb_p(c | 0x01, WDT_EFDR); /* set bit 0 to activate GPIO2 */

return 0;
}
Expand Down

0 comments on commit 943413c

Please sign in to comment.