aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/wdt_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/watchdog/wdt_pci.c')
-rw-r--r--drivers/watchdog/wdt_pci.c34
1 files changed, 1 insertions, 33 deletions
diff --git a/drivers/watchdog/wdt_pci.c b/drivers/watchdog/wdt_pci.c
index 1c888c7d4cce..e32654efdbb6 100644
--- a/drivers/watchdog/wdt_pci.c
+++ b/drivers/watchdog/wdt_pci.c
@@ -739,39 +739,7 @@ static struct pci_driver wdtpci_driver = {
739 .remove = __devexit_p(wdtpci_remove_one), 739 .remove = __devexit_p(wdtpci_remove_one),
740}; 740};
741 741
742 742module_pci_driver(wdtpci_driver);
743/**
744 * wdtpci_cleanup:
745 *
746 * Unload the watchdog. You cannot do this with any file handles open.
747 * If your watchdog is set to continue ticking on close and you unload
748 * it, well it keeps ticking. We won't get the interrupt but the board
749 * will not touch PC memory so all is fine. You just have to load a new
750 * module in xx seconds or reboot.
751 */
752
753static void __exit wdtpci_cleanup(void)
754{
755 pci_unregister_driver(&wdtpci_driver);
756}
757
758
759/**
760 * wdtpci_init:
761 *
762 * Set up the WDT watchdog board. All we have to do is grab the
763 * resources we require and bitch if anyone beat us to them.
764 * The open() function will actually kick the board off.
765 */
766
767static int __init wdtpci_init(void)
768{
769 return pci_register_driver(&wdtpci_driver);
770}
771
772
773module_init(wdtpci_init);
774module_exit(wdtpci_cleanup);
775 743
776MODULE_AUTHOR("JP Nollmann, Alan Cox"); 744MODULE_AUTHOR("JP Nollmann, Alan Cox");
777MODULE_DESCRIPTION("Driver for the ICS PCI-WDT500/501 watchdog cards"); 745MODULE_DESCRIPTION("Driver for the ICS PCI-WDT500/501 watchdog cards");