diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-04-03 03:25:46 +0200 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-05-21 04:41:48 +0200 |
commit | f71f5a550a43a81943efbe0032190ec381006b53 (patch) | |
tree | d2eac8dcd43f1e56b9dcf0f05bbe2ff99953c2a8 /drivers/hwmon/k10temp.c | |
parent | hwmon: (it87) Add support for IT8782F and IT8783E/F (diff) | |
download | linux-f71f5a550a43a81943efbe0032190ec381006b53.tar.xz linux-f71f5a550a43a81943efbe0032190ec381006b53.zip |
hwmon: use module_pci_driver
This patch converts the drivers in drivers/hwmon/* to use module_pci_driver()
macro which makes the code smaller and a bit simpler.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Andreas Herrmann <andreas.herrmann3@amd.com>
Cc: Clemens Ladisch <clemens@ladisch.de>
Cc: Rudolf Marek <r.marek@assembler.cz>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon/k10temp.c')
-rw-r--r-- | drivers/hwmon/k10temp.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c index 307bb325dde9..7356b5ec8f67 100644 --- a/drivers/hwmon/k10temp.c +++ b/drivers/hwmon/k10temp.c @@ -225,15 +225,4 @@ static struct pci_driver k10temp_driver = { .remove = __devexit_p(k10temp_remove), }; -static int __init k10temp_init(void) -{ - return pci_register_driver(&k10temp_driver); -} - -static void __exit k10temp_exit(void) -{ - pci_unregister_driver(&k10temp_driver); -} - -module_init(k10temp_init) -module_exit(k10temp_exit) +module_pci_driver(k10temp_driver); |