aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/k8temp.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-04-02 21:25:46 -0400
committerGuenter Roeck <guenter.roeck@ericsson.com>2012-05-20 22:41:48 -0400
commitf71f5a550a43a81943efbe0032190ec381006b53 (patch)
treed2eac8dcd43f1e56b9dcf0f05bbe2ff99953c2a8 /drivers/hwmon/k8temp.c
parent0531d98b1f2ec6f92074e5b2a74927b865bc605c (diff)
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/k8temp.c')
-rw-r--r--drivers/hwmon/k8temp.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/hwmon/k8temp.c b/drivers/hwmon/k8temp.c
index 575101988751..35aac82ee8eb 100644
--- a/drivers/hwmon/k8temp.c
+++ b/drivers/hwmon/k8temp.c
@@ -339,19 +339,8 @@ static struct pci_driver k8temp_driver = {
339 .remove = __devexit_p(k8temp_remove), 339 .remove = __devexit_p(k8temp_remove),
340}; 340};
341 341
342static int __init k8temp_init(void) 342module_pci_driver(k8temp_driver);
343{
344 return pci_register_driver(&k8temp_driver);
345}
346
347static void __exit k8temp_exit(void)
348{
349 pci_unregister_driver(&k8temp_driver);
350}
351 343
352MODULE_AUTHOR("Rudolf Marek <r.marek@assembler.cz>"); 344MODULE_AUTHOR("Rudolf Marek <r.marek@assembler.cz>");
353MODULE_DESCRIPTION("AMD K8 core temperature monitor"); 345MODULE_DESCRIPTION("AMD K8 core temperature monitor");
354MODULE_LICENSE("GPL"); 346MODULE_LICENSE("GPL");
355
356module_init(k8temp_init)
357module_exit(k8temp_exit)