patch-2.4.21 linux-2.4.21/drivers/char/wdt285.c

Next file: linux-2.4.21/drivers/fc4/soc.c
Previous file: linux-2.4.21/drivers/char/tty_io.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/drivers/char/wdt285.c linux-2.4.21/drivers/char/wdt285.c
@@ -179,10 +179,15 @@
 
 static int __init footbridge_watchdog_init(void)
 {
+	int retval;
+
 	if (machine_is_netwinder())
 		return -ENODEV;
 
-	misc_register(&watchdog_miscdev);
+	retval = misc_register(&watchdog_miscdev);
+	if(retval < 0)
+		return retval;
+
 	printk("Footbridge Watchdog Timer: 0.01, timer margin: %d sec\n", 
 	       soft_margin);
 	if (machine_is_cats())

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)