diff options
author | Wim Van Sebroeck <wim@iguana.be> | 2011-02-21 19:09:40 +0000 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2011-03-14 10:39:53 +0000 |
commit | a450c786a5769745cc8fa873a66ed3c377875ead (patch) | |
tree | b6f70356c14133f6b1f511fc5da5e18854afb728 /drivers | |
parent | bbd562d717a84c6464211e8bd5efa0d9e25edc6d (diff) | |
download | linux-3.10-a450c786a5769745cc8fa873a66ed3c377875ead.tar.gz linux-3.10-a450c786a5769745cc8fa873a66ed3c377875ead.tar.bz2 linux-3.10-a450c786a5769745cc8fa873a66ed3c377875ead.zip |
watchdog: sch311x_wdt: Fix LDN active check
if (sch311x_sio_inb(sio_config_port, 0x30) && 0x01 == 0) -> && should be &
Reported-By: Toralf Förster <toralf.foerster@gmx.de>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers')
-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 0461858e07d..7b687e9497f 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 */ |