patch-2.4.19 linux-2.4.19/drivers/char/acquirewdt.c
Next file: linux-2.4.19/drivers/char/advantechwdt.c
Previous file: linux-2.4.19/drivers/char/acpi_serial.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Fri Aug 2 17:39:43 2002
- Orig file:
linux-2.4.18/drivers/char/acquirewdt.c
- Orig date:
Thu Sep 13 15:21:32 2001
diff -urN linux-2.4.18/drivers/char/acquirewdt.c linux-2.4.19/drivers/char/acquirewdt.c
@@ -209,7 +209,8 @@
printk("WDT driver for Acquire single board computer initialising.\n");
spin_lock_init(&acq_lock);
- misc_register(&acq_miscdev);
+ if (misc_register(&acq_miscdev))
+ return -ENODEV;
request_region(WDT_STOP, 1, "Acquire WDT");
request_region(WDT_START, 1, "Acquire WDT");
register_reboot_notifier(&acq_notifier);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)