Commit aef64d0d380132c11e27c44b0f73afb9bdb59771
Committed by
Jean Delvare
1 parent
e3d982034d
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
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>
Showing 1 changed file with 1 additions and 12 deletions Side-by-side Diff
drivers/hwmon/i5500_temp.c
... | ... | @@ -149,20 +149,9 @@ |
149 | 149 | .probe = i5500_temp_probe, |
150 | 150 | }; |
151 | 151 | |
152 | -static int __init i5500_temp_init(void) | |
153 | -{ | |
154 | - return pci_register_driver(&i5500_temp_driver); | |
155 | -} | |
152 | +module_pci_driver(i5500_temp_driver); | |
156 | 153 | |
157 | -static void __exit i5500_temp_exit(void) | |
158 | -{ | |
159 | - pci_unregister_driver(&i5500_temp_driver); | |
160 | -} | |
161 | - | |
162 | 154 | MODULE_AUTHOR("Jean Delvare <jdelvare@suse.de>"); |
163 | 155 | MODULE_DESCRIPTION("Intel 5500/5520/X58 chipset thermal sensor driver"); |
164 | 156 | MODULE_LICENSE("GPL"); |
165 | - | |
166 | -module_init(i5500_temp_init) | |
167 | -module_exit(i5500_temp_exit) |