Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a450c786 authored by Wim Van Sebroeck's avatar Wim Van Sebroeck
Browse files

watchdog: sch311x_wdt: Fix LDN active check



if (sch311x_sio_inb(sio_config_port, 0x30) && 0x01 == 0) -> && should be &

Reported-By: default avatarToralf Förster <toralf.foerster@gmx.de>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent bbd562d7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -508,7 +508,7 @@ static int __init sch311x_detect(int sio_config_port, unsigned short *addr)
	sch311x_sio_outb(sio_config_port, 0x07, 0x0a);
	sch311x_sio_outb(sio_config_port, 0x07, 0x0a);


	/* Check if Logical Device Register is currently active */
	/* 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");
		printk(KERN_INFO PFX "Seems that LDN 0x0a is not active...\n");


	/* Get the base address of the runtime registers */
	/* Get the base address of the runtime registers */