diff options
author | Wim Van Sebroeck <wim@iguana.be> | 2012-05-04 08:43:25 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2012-05-23 10:23:53 -0400 |
commit | 5ce9c371c788638890980b27f0cd8af7071b3a50 (patch) | |
tree | 948f891f9211d61631199bdefb2d8adb44f951f4 /drivers/watchdog/i6300esb.c | |
parent | 8f90a3ae8f67a6c521e2d8fcb488262833f2a4cd (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.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/watchdog/i6300esb.c b/drivers/watchdog/i6300esb.c index 738032a36bcf..276877d5b6a3 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 | ||
495 | static int __init watchdog_init(void) | 495 | module_pci_driver(esb_driver); |
496 | { | ||
497 | return pci_register_driver(&esb_driver); | ||
498 | } | ||
499 | |||
500 | static void __exit watchdog_cleanup(void) | ||
501 | { | ||
502 | pci_unregister_driver(&esb_driver); | ||
503 | pr_info("Watchdog Module Unloaded\n"); | ||
504 | } | ||
505 | |||
506 | module_init(watchdog_init); | ||
507 | module_exit(watchdog_cleanup); | ||
508 | 496 | ||
509 | MODULE_AUTHOR("Ross Biro and David Härdeman"); | 497 | MODULE_AUTHOR("Ross Biro and David Härdeman"); |
510 | MODULE_DESCRIPTION("Watchdog driver for Intel 6300ESB chipsets"); | 498 | MODULE_DESCRIPTION("Watchdog driver for Intel 6300ESB chipsets"); |