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
- Lines: 17
- Date:
2003-06-13 07:51:33.000000000 -0700
- Orig file:
linux-2.4.20/drivers/char/wdt285.c
- Orig date:
2002-08-02 17:39:43.000000000 -0700
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)