aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/i6300esb.c
diff options
context:
space:
mode:
authorWim Van Sebroeck <wim@iguana.be>2012-05-04 08:43:25 -0400
committerWim Van Sebroeck <wim@iguana.be>2012-05-23 10:23:53 -0400
commit5ce9c371c788638890980b27f0cd8af7071b3a50 (patch)
tree948f891f9211d61631199bdefb2d8adb44f951f4 /drivers/watchdog/i6300esb.c
parent8f90a3ae8f67a6c521e2d8fcb488262833f2a4cd (diff)
watchdog: Use module_pci_driver
This patch converts the PCI watchdog drivers so that they use the module_pci_driver() macro. This makes the code smaller and simpler. Signed-off-by: Wim Van Sebroeck <wim@iguana.be> Cc: Thomas Mingarelli <thomas.mingarelli@hp.com> Cc: Marc Vertes <marc.vertes@sigfox.com>
Diffstat (limited to 'drivers/watchdog/i6300esb.c')
-rw-r--r--drivers/watchdog/i6300esb.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/watchdog/i6300esb.c b/drivers/watchdog/i6300esb.c
index 738032a36bc..276877d5b6a 100644
--- a/drivers/watchdog/i6300esb.c
+++ b/drivers/watchdog/i6300esb.c
@@ -492,19 +492,7 @@ static struct pci_driver esb_driver = {
492 .shutdown = esb_shutdown, 492 .shutdown = esb_shutdown,
493}; 493};
494 494
495static int __init watchdog_init(void) 495module_pci_driver(esb_driver);
496{
497 return pci_register_driver(&esb_driver);
498}
499
500static void __exit watchdog_cleanup(void)
501{
502 pci_unregister_driver(&esb_driver);
503 pr_info("Watchdog Module Unloaded\n");
504}
505
506module_init(watchdog_init);
507module_exit(watchdog_cleanup);
508 496
509MODULE_AUTHOR("Ross Biro and David Härdeman"); 497MODULE_AUTHOR("Ross Biro and David Härdeman");
510MODULE_DESCRIPTION("Watchdog driver for Intel 6300ESB chipsets"); 498MODULE_DESCRIPTION("Watchdog driver for Intel 6300ESB chipsets");