diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-04-02 21:25:46 -0400 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-05-20 19:41:48 -0700 |
commit | f71f5a550a43a81943efbe0032190ec381006b53 (patch) | |
tree | d2eac8dcd43f1e56b9dcf0f05bbe2ff99953c2a8 /drivers/hwmon/fam15h_power.c | |
parent | 0531d98b1f2ec6f92074e5b2a74927b865bc605c (diff) | |
download | linux-f71f5a550a43a81943efbe0032190ec381006b53.tar.gz linux-f71f5a550a43a81943efbe0032190ec381006b53.tar.bz2 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/fam15h_power.c')
-rw-r--r-- | drivers/hwmon/fam15h_power.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/hwmon/fam15h_power.c b/drivers/hwmon/fam15h_power.c index e8e18cab1fb8..6b13f1a4dc27 100644 --- a/drivers/hwmon/fam15h_power.c +++ b/drivers/hwmon/fam15h_power.c @@ -257,15 +257,4 @@ static struct pci_driver fam15h_power_driver = { .remove = __devexit_p(fam15h_power_remove), }; -static int __init fam15h_power_init(void) -{ - return pci_register_driver(&fam15h_power_driver); -} - -static void __exit fam15h_power_exit(void) -{ - pci_unregister_driver(&fam15h_power_driver); -} - -module_init(fam15h_power_init) -module_exit(fam15h_power_exit) +module_pci_driver(fam15h_power_driver); |