patch-2.1.77 linux/drivers/char/wdt.c

Next file: linux/drivers/isdn/isdn_net.c
Previous file: linux/drivers/char/vc_screen.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.76/linux/drivers/char/wdt.c linux/drivers/char/wdt.c
@@ -368,7 +368,7 @@
 #ifdef CONFIG_WDT_501	
 	misc_deregister(&temp_miscdev);
 #endif	
-	notifier_chain_unregister(&reboot_notifier_list, &wdt_notifier);
+	unregister_reboot_notifier(&wdt_notifier);
 	release_region(io,8);
 	free_irq(irq, NULL);
 }
@@ -388,7 +388,7 @@
 	misc_register(&temp_miscdev);
 #endif	
 	request_region(io, 8, "wdt501p");
-	notifier_chain_register(&reboot_notifier_list, &wdt_notifier);
+	register_reboot_notifier(&wdt_notifier);
 	return 0;
 }
 

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