patch-2.1.36 linux/drivers/char/softdog.c

Next file: linux/drivers/char/stallion.c
Previous file: linux/drivers/char/serial.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.35/linux/drivers/char/softdog.c linux/drivers/char/softdog.c
@@ -34,6 +34,7 @@
 #include <linux/miscdevice.h>
 #include <linux/watchdog.h>
 #include <linux/reboot.h>
+#include <linux/init.h>
 #include <asm/uaccess.h>
 
 #define WATCHDOG_MINOR	130
@@ -172,7 +173,7 @@
 	&softdog_fops
 };
 
-void watchdog_init(void)
+__initfunc(void watchdog_init(void))
 {
 	misc_register(&softdog_miscdev);
 	init_timer(&watchdog_ticktock);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov