diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-14 10:15:43 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-14 10:15:43 -0700 |
commit | 786c58b7275ae885a3cee9d5bcf8721d962861ac (patch) | |
tree | 40997a988f66d449ff02f5c22853526aac35d773 /drivers/watchdog/sch311x_wdt.c | |
parent | 1eafbfeb7bdf59cfe173304c76188f3fd5f1fd05 (diff) | |
parent | b77b708868c23737a4d25a474736cc924deb44f1 (diff) | |
download | linux-786c58b7275ae885a3cee9d5bcf8721d962861ac.tar.gz linux-786c58b7275ae885a3cee9d5bcf8721d962861ac.tar.bz2 linux-786c58b7275ae885a3cee9d5bcf8721d962861ac.zip |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog
* git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog:
watchdog: hpwdt: eliminate section mismatch warning
watchdog: w83697ug_wdt: Fix set bit 0 to activate GPIO2
watchdog: sch311x_wdt: fix printk condition
watchdog: sch311x_wdt: Fix LDN active check
watchdog: cpwd: Fix buffer-overflow
Diffstat (limited to 'drivers/watchdog/sch311x_wdt.c')
-rw-r--r-- | drivers/watchdog/sch311x_wdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/sch311x_wdt.c b/drivers/watchdog/sch311x_wdt.c index 0461858e07d0..b61ab1c54293 100644 --- a/drivers/watchdog/sch311x_wdt.c +++ b/drivers/watchdog/sch311x_wdt.c @@ -508,7 +508,7 @@ static int __init sch311x_detect(int sio_config_port, unsigned short *addr) sch311x_sio_outb(sio_config_port, 0x07, 0x0a); /* Check if Logical Device Register is currently active */ - if (sch311x_sio_inb(sio_config_port, 0x30) && 0x01 == 0) + if ((sch311x_sio_inb(sio_config_port, 0x30) & 0x01) == 0) printk(KERN_INFO PFX "Seems that LDN 0x0a is not active...\n"); /* Get the base address of the runtime registers */ |