aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-01-24 08:16:22 -0500
committerJean Delvare <jdelvare@suse.de>2015-01-24 08:16:22 -0500
commitaef64d0d380132c11e27c44b0f73afb9bdb59771 (patch)
treef7fea1fc2077609923d6faa86bfa028b7603b3ca /drivers/hwmon
parente3d982034dd74b32f621fcba7adeb77716fa0fb4 (diff)
hwmon: (i5500_temp) Convert to module_pci_driver
Use module_pci_driver to simplify the code a bit. Signed-off-by: Axel Lin <axel.lin@ingics.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Jean Delvare <jdelvare@suse.de>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/i5500_temp.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/hwmon/i5500_temp.c b/drivers/hwmon/i5500_temp.c
index fb84a0ecbbad..2922be3ef83f 100644
--- a/drivers/hwmon/i5500_temp.c
+++ b/drivers/hwmon/i5500_temp.c
@@ -149,19 +149,8 @@ static struct pci_driver i5500_temp_driver = {
149 .probe = i5500_temp_probe, 149 .probe = i5500_temp_probe,
150}; 150};
151 151
152static int __init i5500_temp_init(void) 152module_pci_driver(i5500_temp_driver);
153{
154 return pci_register_driver(&i5500_temp_driver);
155}
156
157static void __exit i5500_temp_exit(void)
158{
159 pci_unregister_driver(&i5500_temp_driver);
160}
161 153
162MODULE_AUTHOR("Jean Delvare <jdelvare@suse.de>"); 154MODULE_AUTHOR("Jean Delvare <jdelvare@suse.de>");
163MODULE_DESCRIPTION("Intel 5500/5520/X58 chipset thermal sensor driver"); 155MODULE_DESCRIPTION("Intel 5500/5520/X58 chipset thermal sensor driver");
164MODULE_LICENSE("GPL"); 156MODULE_LICENSE("GPL");
165
166module_init(i5500_temp_init)
167module_exit(i5500_temp_exit)