projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6899a8e
)
watchdog: w83697ug_wdt: Fix set bit 0 to activate GPIO2
author
Wim Van Sebroeck
<wim@iguana.be>
Mon, 21 Feb 2011 19:28:58 +0000
(19:28 +0000)
committer
Wim Van Sebroeck
<wim@iguana.be>
Mon, 14 Mar 2011 10:40:30 +0000
(10:40 +0000)
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>
drivers/watchdog/w83697ug_wdt.c
patch
|
blob
|
history
diff --git
a/drivers/watchdog/w83697ug_wdt.c
b/drivers/watchdog/w83697ug_wdt.c
index
a6c12de
..
df2a64d
100644
(file)
--- a/
drivers/watchdog/w83697ug_wdt.c
+++ b/
drivers/watchdog/w83697ug_wdt.c
@@
-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;
}