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

Commit 11dc1019 authored by Dave Jones's avatar Dave Jones Committed by Wim Van Sebroeck
Browse files

[WATCHDOG] improve machzwd detection



On a machine with no machzwd, loading the module prints out..

machzwd: MachZ ZF-Logic Watchdog driver initializing.
0xffff
machzwd: Watchdog using action = RESET

- the 0xffff printk is unnecessary
- 0xffff seems to be 'hardware not present'
- fix CodingStyle. (This driver could use some more work here)

Signed-off-by: default avatarDave Jones <davej@redhat.com>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
parent 795b89d2
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -426,8 +426,7 @@ static int __init zf_init(void)
	printk(KERN_INFO PFX ": MachZ ZF-Logic Watchdog driver initializing.\n");
	printk(KERN_INFO PFX ": MachZ ZF-Logic Watchdog driver initializing.\n");


	ret = zf_get_ZFL_version();
	ret = zf_get_ZFL_version();
	printk("%#x\n", ret);
	if ((!ret) || (ret == 0xffff)) {
	if((!ret) || (ret != 0xffff)){
		printk(KERN_WARNING PFX ": no ZF-Logic found\n");
		printk(KERN_WARNING PFX ": no ZF-Logic found\n");
		return -ENODEV;
		return -ENODEV;
	}
	}