Skip to content

Commit

Permalink
watchdog: sch311x_wdt: Fix LDN active check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wim Van Sebroeck committed Mar 14, 2011
1 parent bbd562d commit a450c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/watchdog/sch311x_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit a450c78

Please sign in to comment.