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/hpwdt.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/hpwdt.c')
-rw-r--r-- | drivers/watchdog/hpwdt.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c index 23885f2d56a0..2b763815aeec 100644 --- a/drivers/watchdog/hpwdt.c +++ b/drivers/watchdog/hpwdt.c | |||
@@ -861,16 +861,6 @@ static struct pci_driver hpwdt_driver = { | |||
861 | .remove = __devexit_p(hpwdt_exit), | 861 | .remove = __devexit_p(hpwdt_exit), |
862 | }; | 862 | }; |
863 | 863 | ||
864 | static void __exit hpwdt_cleanup(void) | ||
865 | { | ||
866 | pci_unregister_driver(&hpwdt_driver); | ||
867 | } | ||
868 | |||
869 | static int __init hpwdt_init(void) | ||
870 | { | ||
871 | return pci_register_driver(&hpwdt_driver); | ||
872 | } | ||
873 | |||
874 | MODULE_AUTHOR("Tom Mingarelli"); | 864 | MODULE_AUTHOR("Tom Mingarelli"); |
875 | MODULE_DESCRIPTION("hp watchdog driver"); | 865 | MODULE_DESCRIPTION("hp watchdog driver"); |
876 | MODULE_LICENSE("GPL"); | 866 | MODULE_LICENSE("GPL"); |
@@ -889,5 +879,4 @@ module_param(allow_kdump, int, 0); | |||
889 | MODULE_PARM_DESC(allow_kdump, "Start a kernel dump after NMI occurs"); | 879 | MODULE_PARM_DESC(allow_kdump, "Start a kernel dump after NMI occurs"); |
890 | #endif /* !CONFIG_HPWDT_NMI_DECODING */ | 880 | #endif /* !CONFIG_HPWDT_NMI_DECODING */ |
891 | 881 | ||
892 | module_init(hpwdt_init); | 882 | module_pci_driver(hpwdt_driver); |
893 | module_exit(hpwdt_cleanup); | ||