diff options
Diffstat (limited to 'drivers/hwmon')
47 files changed, 179 insertions, 179 deletions
diff --git a/drivers/hwmon/abituguru.c b/drivers/hwmon/abituguru.c index 78b81793ddd9..6119ff8e8c87 100644 --- a/drivers/hwmon/abituguru.c +++ b/drivers/hwmon/abituguru.c | |||
@@ -478,7 +478,7 @@ static int abituguru_write(struct abituguru_data *data, | |||
478 | * alarm for sensor type X and then enabling the sensor as sensor type | 478 | * alarm for sensor type X and then enabling the sensor as sensor type |
479 | * X, if we then get an alarm it is a sensor of type X. | 479 | * X, if we then get an alarm it is a sensor of type X. |
480 | */ | 480 | */ |
481 | static int __devinit | 481 | static int |
482 | abituguru_detect_bank1_sensor_type(struct abituguru_data *data, | 482 | abituguru_detect_bank1_sensor_type(struct abituguru_data *data, |
483 | u8 sensor_addr) | 483 | u8 sensor_addr) |
484 | { | 484 | { |
@@ -635,7 +635,7 @@ abituguru_detect_bank1_sensor_type_exit: | |||
635 | * read/write test would be feasible because of the reaction above, I've | 635 | * read/write test would be feasible because of the reaction above, I've |
636 | * however opted to stay on the safe side. | 636 | * however opted to stay on the safe side. |
637 | */ | 637 | */ |
638 | static void __devinit | 638 | static void |
639 | abituguru_detect_no_bank2_sensors(struct abituguru_data *data) | 639 | abituguru_detect_no_bank2_sensors(struct abituguru_data *data) |
640 | { | 640 | { |
641 | int i; | 641 | int i; |
@@ -691,7 +691,7 @@ abituguru_detect_no_bank2_sensors(struct abituguru_data *data) | |||
691 | (int)data->bank2_sensors); | 691 | (int)data->bank2_sensors); |
692 | } | 692 | } |
693 | 693 | ||
694 | static void __devinit | 694 | static void |
695 | abituguru_detect_no_pwms(struct abituguru_data *data) | 695 | abituguru_detect_no_pwms(struct abituguru_data *data) |
696 | { | 696 | { |
697 | int i, j; | 697 | int i, j; |
@@ -1264,7 +1264,7 @@ static struct sensor_device_attribute_2 abituguru_sysfs_attr[] = { | |||
1264 | SENSOR_ATTR_2(name, 0444, show_name, NULL, 0, 0), | 1264 | SENSOR_ATTR_2(name, 0444, show_name, NULL, 0, 0), |
1265 | }; | 1265 | }; |
1266 | 1266 | ||
1267 | static int __devinit abituguru_probe(struct platform_device *pdev) | 1267 | static int abituguru_probe(struct platform_device *pdev) |
1268 | { | 1268 | { |
1269 | struct abituguru_data *data; | 1269 | struct abituguru_data *data; |
1270 | int i, j, used, sysfs_names_free, sysfs_attr_i, res = -ENODEV; | 1270 | int i, j, used, sysfs_names_free, sysfs_attr_i, res = -ENODEV; |
@@ -1434,7 +1434,7 @@ abituguru_probe_error: | |||
1434 | return res; | 1434 | return res; |
1435 | } | 1435 | } |
1436 | 1436 | ||
1437 | static int __devexit abituguru_remove(struct platform_device *pdev) | 1437 | static int abituguru_remove(struct platform_device *pdev) |
1438 | { | 1438 | { |
1439 | int i; | 1439 | int i; |
1440 | struct abituguru_data *data = platform_get_drvdata(pdev); | 1440 | struct abituguru_data *data = platform_get_drvdata(pdev); |
@@ -1545,7 +1545,7 @@ static struct platform_driver abituguru_driver = { | |||
1545 | .pm = ABIT_UGURU_PM, | 1545 | .pm = ABIT_UGURU_PM, |
1546 | }, | 1546 | }, |
1547 | .probe = abituguru_probe, | 1547 | .probe = abituguru_probe, |
1548 | .remove = __devexit_p(abituguru_remove), | 1548 | .remove = abituguru_remove, |
1549 | }; | 1549 | }; |
1550 | 1550 | ||
1551 | static int __init abituguru_detect(void) | 1551 | static int __init abituguru_detect(void) |
diff --git a/drivers/hwmon/abituguru3.c b/drivers/hwmon/abituguru3.c index b174b8b2b4df..205327d33c4d 100644 --- a/drivers/hwmon/abituguru3.c +++ b/drivers/hwmon/abituguru3.c | |||
@@ -966,7 +966,7 @@ static struct sensor_device_attribute_2 abituguru3_sysfs_attr[] = { | |||
966 | SENSOR_ATTR_2(name, 0444, show_name, NULL, 0, 0), | 966 | SENSOR_ATTR_2(name, 0444, show_name, NULL, 0, 0), |
967 | }; | 967 | }; |
968 | 968 | ||
969 | static int __devinit abituguru3_probe(struct platform_device *pdev) | 969 | static int abituguru3_probe(struct platform_device *pdev) |
970 | { | 970 | { |
971 | const int no_sysfs_attr[3] = { 10, 8, 7 }; | 971 | const int no_sysfs_attr[3] = { 10, 8, 7 }; |
972 | int sensor_index[3] = { 0, 1, 1 }; | 972 | int sensor_index[3] = { 0, 1, 1 }; |
@@ -1072,7 +1072,7 @@ abituguru3_probe_error: | |||
1072 | return res; | 1072 | return res; |
1073 | } | 1073 | } |
1074 | 1074 | ||
1075 | static int __devexit abituguru3_remove(struct platform_device *pdev) | 1075 | static int abituguru3_remove(struct platform_device *pdev) |
1076 | { | 1076 | { |
1077 | int i; | 1077 | int i; |
1078 | struct abituguru3_data *data = platform_get_drvdata(pdev); | 1078 | struct abituguru3_data *data = platform_get_drvdata(pdev); |
@@ -1171,7 +1171,7 @@ static struct platform_driver abituguru3_driver = { | |||
1171 | .pm = ABIT_UGURU3_PM | 1171 | .pm = ABIT_UGURU3_PM |
1172 | }, | 1172 | }, |
1173 | .probe = abituguru3_probe, | 1173 | .probe = abituguru3_probe, |
1174 | .remove = __devexit_p(abituguru3_remove), | 1174 | .remove = abituguru3_remove, |
1175 | }; | 1175 | }; |
1176 | 1176 | ||
1177 | static int __init abituguru3_dmi_detect(void) | 1177 | static int __init abituguru3_dmi_detect(void) |
diff --git a/drivers/hwmon/ad7314.c b/drivers/hwmon/ad7314.c index 37c01e72d699..a57584d28a40 100644 --- a/drivers/hwmon/ad7314.c +++ b/drivers/hwmon/ad7314.c | |||
@@ -107,7 +107,7 @@ static const struct attribute_group ad7314_group = { | |||
107 | .attrs = ad7314_attributes, | 107 | .attrs = ad7314_attributes, |
108 | }; | 108 | }; |
109 | 109 | ||
110 | static int __devinit ad7314_probe(struct spi_device *spi_dev) | 110 | static int ad7314_probe(struct spi_device *spi_dev) |
111 | { | 111 | { |
112 | int ret; | 112 | int ret; |
113 | struct ad7314_data *chip; | 113 | struct ad7314_data *chip; |
@@ -135,7 +135,7 @@ error_remove_group: | |||
135 | return ret; | 135 | return ret; |
136 | } | 136 | } |
137 | 137 | ||
138 | static int __devexit ad7314_remove(struct spi_device *spi_dev) | 138 | static int ad7314_remove(struct spi_device *spi_dev) |
139 | { | 139 | { |
140 | struct ad7314_data *chip = dev_get_drvdata(&spi_dev->dev); | 140 | struct ad7314_data *chip = dev_get_drvdata(&spi_dev->dev); |
141 | 141 | ||
@@ -159,7 +159,7 @@ static struct spi_driver ad7314_driver = { | |||
159 | .owner = THIS_MODULE, | 159 | .owner = THIS_MODULE, |
160 | }, | 160 | }, |
161 | .probe = ad7314_probe, | 161 | .probe = ad7314_probe, |
162 | .remove = __devexit_p(ad7314_remove), | 162 | .remove = ad7314_remove, |
163 | .id_table = ad7314_id, | 163 | .id_table = ad7314_id, |
164 | }; | 164 | }; |
165 | 165 | ||
diff --git a/drivers/hwmon/ad7414.c b/drivers/hwmon/ad7414.c index b420fb3f3a71..f3a5d4764eb9 100644 --- a/drivers/hwmon/ad7414.c +++ b/drivers/hwmon/ad7414.c | |||
@@ -226,7 +226,7 @@ exit_remove: | |||
226 | return err; | 226 | return err; |
227 | } | 227 | } |
228 | 228 | ||
229 | static int __devexit ad7414_remove(struct i2c_client *client) | 229 | static int ad7414_remove(struct i2c_client *client) |
230 | { | 230 | { |
231 | struct ad7414_data *data = i2c_get_clientdata(client); | 231 | struct ad7414_data *data = i2c_get_clientdata(client); |
232 | 232 | ||
@@ -246,7 +246,7 @@ static struct i2c_driver ad7414_driver = { | |||
246 | .name = "ad7414", | 246 | .name = "ad7414", |
247 | }, | 247 | }, |
248 | .probe = ad7414_probe, | 248 | .probe = ad7414_probe, |
249 | .remove = __devexit_p(ad7414_remove), | 249 | .remove = ad7414_remove, |
250 | .id_table = ad7414_id, | 250 | .id_table = ad7414_id, |
251 | }; | 251 | }; |
252 | 252 | ||
diff --git a/drivers/hwmon/adcxx.c b/drivers/hwmon/adcxx.c index f4c5867170d6..751b1f0264a4 100644 --- a/drivers/hwmon/adcxx.c +++ b/drivers/hwmon/adcxx.c | |||
@@ -161,7 +161,7 @@ static struct sensor_device_attribute ad_input[] = { | |||
161 | 161 | ||
162 | /*----------------------------------------------------------------------*/ | 162 | /*----------------------------------------------------------------------*/ |
163 | 163 | ||
164 | static int __devinit adcxx_probe(struct spi_device *spi) | 164 | static int adcxx_probe(struct spi_device *spi) |
165 | { | 165 | { |
166 | int channels = spi_get_device_id(spi)->driver_data; | 166 | int channels = spi_get_device_id(spi)->driver_data; |
167 | struct adcxx *adc; | 167 | struct adcxx *adc; |
@@ -208,7 +208,7 @@ out_err: | |||
208 | return status; | 208 | return status; |
209 | } | 209 | } |
210 | 210 | ||
211 | static int __devexit adcxx_remove(struct spi_device *spi) | 211 | static int adcxx_remove(struct spi_device *spi) |
212 | { | 212 | { |
213 | struct adcxx *adc = spi_get_drvdata(spi); | 213 | struct adcxx *adc = spi_get_drvdata(spi); |
214 | int i; | 214 | int i; |
@@ -240,7 +240,7 @@ static struct spi_driver adcxx_driver = { | |||
240 | }, | 240 | }, |
241 | .id_table = adcxx_ids, | 241 | .id_table = adcxx_ids, |
242 | .probe = adcxx_probe, | 242 | .probe = adcxx_probe, |
243 | .remove = __devexit_p(adcxx_remove), | 243 | .remove = adcxx_remove, |
244 | }; | 244 | }; |
245 | 245 | ||
246 | module_spi_driver(adcxx_driver); | 246 | module_spi_driver(adcxx_driver); |
diff --git a/drivers/hwmon/ads7871.c b/drivers/hwmon/ads7871.c index 1b53aa42b6db..a79875986f91 100644 --- a/drivers/hwmon/ads7871.c +++ b/drivers/hwmon/ads7871.c | |||
@@ -173,7 +173,7 @@ static const struct attribute_group ads7871_group = { | |||
173 | .attrs = ads7871_attributes, | 173 | .attrs = ads7871_attributes, |
174 | }; | 174 | }; |
175 | 175 | ||
176 | static int __devinit ads7871_probe(struct spi_device *spi) | 176 | static int ads7871_probe(struct spi_device *spi) |
177 | { | 177 | { |
178 | int ret, err; | 178 | int ret, err; |
179 | uint8_t val; | 179 | uint8_t val; |
@@ -225,7 +225,7 @@ error_remove: | |||
225 | return err; | 225 | return err; |
226 | } | 226 | } |
227 | 227 | ||
228 | static int __devexit ads7871_remove(struct spi_device *spi) | 228 | static int ads7871_remove(struct spi_device *spi) |
229 | { | 229 | { |
230 | struct ads7871_data *pdata = spi_get_drvdata(spi); | 230 | struct ads7871_data *pdata = spi_get_drvdata(spi); |
231 | 231 | ||
@@ -241,7 +241,7 @@ static struct spi_driver ads7871_driver = { | |||
241 | }, | 241 | }, |
242 | 242 | ||
243 | .probe = ads7871_probe, | 243 | .probe = ads7871_probe, |
244 | .remove = __devexit_p(ads7871_remove), | 244 | .remove = ads7871_remove, |
245 | }; | 245 | }; |
246 | 246 | ||
247 | module_spi_driver(ads7871_driver); | 247 | module_spi_driver(ads7871_driver); |
diff --git a/drivers/hwmon/adt7411.c b/drivers/hwmon/adt7411.c index 517f1856c706..34ff03abb50b 100644 --- a/drivers/hwmon/adt7411.c +++ b/drivers/hwmon/adt7411.c | |||
@@ -276,7 +276,7 @@ static int adt7411_detect(struct i2c_client *client, | |||
276 | return 0; | 276 | return 0; |
277 | } | 277 | } |
278 | 278 | ||
279 | static int __devinit adt7411_probe(struct i2c_client *client, | 279 | static int adt7411_probe(struct i2c_client *client, |
280 | const struct i2c_device_id *id) | 280 | const struct i2c_device_id *id) |
281 | { | 281 | { |
282 | struct adt7411_data *data; | 282 | struct adt7411_data *data; |
@@ -317,7 +317,7 @@ static int __devinit adt7411_probe(struct i2c_client *client, | |||
317 | return ret; | 317 | return ret; |
318 | } | 318 | } |
319 | 319 | ||
320 | static int __devexit adt7411_remove(struct i2c_client *client) | 320 | static int adt7411_remove(struct i2c_client *client) |
321 | { | 321 | { |
322 | struct adt7411_data *data = i2c_get_clientdata(client); | 322 | struct adt7411_data *data = i2c_get_clientdata(client); |
323 | 323 | ||
@@ -337,7 +337,7 @@ static struct i2c_driver adt7411_driver = { | |||
337 | .name = "adt7411", | 337 | .name = "adt7411", |
338 | }, | 338 | }, |
339 | .probe = adt7411_probe, | 339 | .probe = adt7411_probe, |
340 | .remove = __devexit_p(adt7411_remove), | 340 | .remove = adt7411_remove, |
341 | .id_table = adt7411_id, | 341 | .id_table = adt7411_id, |
342 | .detect = adt7411_detect, | 342 | .detect = adt7411_detect, |
343 | .address_list = normal_i2c, | 343 | .address_list = normal_i2c, |
diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c index 24426a785ad5..d64923d63537 100644 --- a/drivers/hwmon/coretemp.c +++ b/drivers/hwmon/coretemp.c | |||
@@ -356,7 +356,7 @@ static int __cpuinit get_tjmax(struct cpuinfo_x86 *c, u32 id, | |||
356 | return adjust_tjmax(c, id, dev); | 356 | return adjust_tjmax(c, id, dev); |
357 | } | 357 | } |
358 | 358 | ||
359 | static int __devinit create_name_attr(struct platform_data *pdata, | 359 | static int create_name_attr(struct platform_data *pdata, |
360 | struct device *dev) | 360 | struct device *dev) |
361 | { | 361 | { |
362 | sysfs_attr_init(&pdata->name_attr.attr); | 362 | sysfs_attr_init(&pdata->name_attr.attr); |
@@ -551,7 +551,7 @@ static void coretemp_remove_core(struct platform_data *pdata, | |||
551 | pdata->core_data[indx] = NULL; | 551 | pdata->core_data[indx] = NULL; |
552 | } | 552 | } |
553 | 553 | ||
554 | static int __devinit coretemp_probe(struct platform_device *pdev) | 554 | static int coretemp_probe(struct platform_device *pdev) |
555 | { | 555 | { |
556 | struct platform_data *pdata; | 556 | struct platform_data *pdata; |
557 | int err; | 557 | int err; |
@@ -584,7 +584,7 @@ exit_free: | |||
584 | return err; | 584 | return err; |
585 | } | 585 | } |
586 | 586 | ||
587 | static int __devexit coretemp_remove(struct platform_device *pdev) | 587 | static int coretemp_remove(struct platform_device *pdev) |
588 | { | 588 | { |
589 | struct platform_data *pdata = platform_get_drvdata(pdev); | 589 | struct platform_data *pdata = platform_get_drvdata(pdev); |
590 | int i; | 590 | int i; |
@@ -606,7 +606,7 @@ static struct platform_driver coretemp_driver = { | |||
606 | .name = DRVNAME, | 606 | .name = DRVNAME, |
607 | }, | 607 | }, |
608 | .probe = coretemp_probe, | 608 | .probe = coretemp_probe, |
609 | .remove = __devexit_p(coretemp_remove), | 609 | .remove = coretemp_remove, |
610 | }; | 610 | }; |
611 | 611 | ||
612 | static int __cpuinit coretemp_device_add(unsigned int cpu) | 612 | static int __cpuinit coretemp_device_add(unsigned int cpu) |
diff --git a/drivers/hwmon/da9052-hwmon.c b/drivers/hwmon/da9052-hwmon.c index 19704948801c..ab4452c5a98c 100644 --- a/drivers/hwmon/da9052-hwmon.c +++ b/drivers/hwmon/da9052-hwmon.c | |||
@@ -270,7 +270,7 @@ static struct attribute *da9052_attr[] = { | |||
270 | 270 | ||
271 | static const struct attribute_group da9052_attr_group = {.attrs = da9052_attr}; | 271 | static const struct attribute_group da9052_attr_group = {.attrs = da9052_attr}; |
272 | 272 | ||
273 | static int __devinit da9052_hwmon_probe(struct platform_device *pdev) | 273 | static int da9052_hwmon_probe(struct platform_device *pdev) |
274 | { | 274 | { |
275 | struct da9052_hwmon *hwmon; | 275 | struct da9052_hwmon *hwmon; |
276 | int ret; | 276 | int ret; |
@@ -303,7 +303,7 @@ err_mem: | |||
303 | return ret; | 303 | return ret; |
304 | } | 304 | } |
305 | 305 | ||
306 | static int __devexit da9052_hwmon_remove(struct platform_device *pdev) | 306 | static int da9052_hwmon_remove(struct platform_device *pdev) |
307 | { | 307 | { |
308 | struct da9052_hwmon *hwmon = platform_get_drvdata(pdev); | 308 | struct da9052_hwmon *hwmon = platform_get_drvdata(pdev); |
309 | 309 | ||
@@ -315,7 +315,7 @@ static int __devexit da9052_hwmon_remove(struct platform_device *pdev) | |||
315 | 315 | ||
316 | static struct platform_driver da9052_hwmon_driver = { | 316 | static struct platform_driver da9052_hwmon_driver = { |
317 | .probe = da9052_hwmon_probe, | 317 | .probe = da9052_hwmon_probe, |
318 | .remove = __devexit_p(da9052_hwmon_remove), | 318 | .remove = da9052_hwmon_remove, |
319 | .driver = { | 319 | .driver = { |
320 | .name = "da9052-hwmon", | 320 | .name = "da9052-hwmon", |
321 | .owner = THIS_MODULE, | 321 | .owner = THIS_MODULE, |
diff --git a/drivers/hwmon/dme1737.c b/drivers/hwmon/dme1737.c index fe0eeec0b750..7430f70ae452 100644 --- a/drivers/hwmon/dme1737.c +++ b/drivers/hwmon/dme1737.c | |||
@@ -2630,7 +2630,7 @@ exit: | |||
2630 | return err; | 2630 | return err; |
2631 | } | 2631 | } |
2632 | 2632 | ||
2633 | static int __devinit dme1737_isa_probe(struct platform_device *pdev) | 2633 | static int dme1737_isa_probe(struct platform_device *pdev) |
2634 | { | 2634 | { |
2635 | u8 company, device; | 2635 | u8 company, device; |
2636 | struct resource *res; | 2636 | struct resource *res; |
@@ -2718,7 +2718,7 @@ exit_remove_files: | |||
2718 | return err; | 2718 | return err; |
2719 | } | 2719 | } |
2720 | 2720 | ||
2721 | static int __devexit dme1737_isa_remove(struct platform_device *pdev) | 2721 | static int dme1737_isa_remove(struct platform_device *pdev) |
2722 | { | 2722 | { |
2723 | struct dme1737_data *data = platform_get_drvdata(pdev); | 2723 | struct dme1737_data *data = platform_get_drvdata(pdev); |
2724 | 2724 | ||
@@ -2734,7 +2734,7 @@ static struct platform_driver dme1737_isa_driver = { | |||
2734 | .name = "dme1737", | 2734 | .name = "dme1737", |
2735 | }, | 2735 | }, |
2736 | .probe = dme1737_isa_probe, | 2736 | .probe = dme1737_isa_probe, |
2737 | .remove = __devexit_p(dme1737_isa_remove), | 2737 | .remove = dme1737_isa_remove, |
2738 | }; | 2738 | }; |
2739 | 2739 | ||
2740 | /* --------------------------------------------------------------------- | 2740 | /* --------------------------------------------------------------------- |
diff --git a/drivers/hwmon/f71805f.c b/drivers/hwmon/f71805f.c index 4dd7723d257f..a9816979c5de 100644 --- a/drivers/hwmon/f71805f.c +++ b/drivers/hwmon/f71805f.c | |||
@@ -1343,7 +1343,7 @@ static struct attribute *f71805f_attr_pwm[] = { | |||
1343 | * Device registration and initialization | 1343 | * Device registration and initialization |
1344 | */ | 1344 | */ |
1345 | 1345 | ||
1346 | static void __devinit f71805f_init_device(struct f71805f_data *data) | 1346 | static void f71805f_init_device(struct f71805f_data *data) |
1347 | { | 1347 | { |
1348 | u8 reg; | 1348 | u8 reg; |
1349 | int i; | 1349 | int i; |
@@ -1374,7 +1374,7 @@ static void __devinit f71805f_init_device(struct f71805f_data *data) | |||
1374 | } | 1374 | } |
1375 | } | 1375 | } |
1376 | 1376 | ||
1377 | static int __devinit f71805f_probe(struct platform_device *pdev) | 1377 | static int f71805f_probe(struct platform_device *pdev) |
1378 | { | 1378 | { |
1379 | struct f71805f_sio_data *sio_data = pdev->dev.platform_data; | 1379 | struct f71805f_sio_data *sio_data = pdev->dev.platform_data; |
1380 | struct f71805f_data *data; | 1380 | struct f71805f_data *data; |
@@ -1490,7 +1490,7 @@ exit_remove_files: | |||
1490 | return err; | 1490 | return err; |
1491 | } | 1491 | } |
1492 | 1492 | ||
1493 | static int __devexit f71805f_remove(struct platform_device *pdev) | 1493 | static int f71805f_remove(struct platform_device *pdev) |
1494 | { | 1494 | { |
1495 | struct f71805f_data *data = platform_get_drvdata(pdev); | 1495 | struct f71805f_data *data = platform_get_drvdata(pdev); |
1496 | int i; | 1496 | int i; |
@@ -1510,7 +1510,7 @@ static struct platform_driver f71805f_driver = { | |||
1510 | .name = DRVNAME, | 1510 | .name = DRVNAME, |
1511 | }, | 1511 | }, |
1512 | .probe = f71805f_probe, | 1512 | .probe = f71805f_probe, |
1513 | .remove = __devexit_p(f71805f_remove), | 1513 | .remove = f71805f_remove, |
1514 | }; | 1514 | }; |
1515 | 1515 | ||
1516 | static int __init f71805f_device_add(unsigned short address, | 1516 | static int __init f71805f_device_add(unsigned short address, |
diff --git a/drivers/hwmon/f71882fg.c b/drivers/hwmon/f71882fg.c index 50e4ce2d22d8..bb7275cc47f3 100644 --- a/drivers/hwmon/f71882fg.c +++ b/drivers/hwmon/f71882fg.c | |||
@@ -364,7 +364,7 @@ static ssize_t store_pwm_auto_point_temp(struct device *dev, | |||
364 | static ssize_t show_name(struct device *dev, struct device_attribute *devattr, | 364 | static ssize_t show_name(struct device *dev, struct device_attribute *devattr, |
365 | char *buf); | 365 | char *buf); |
366 | 366 | ||
367 | static int __devinit f71882fg_probe(struct platform_device *pdev); | 367 | static int f71882fg_probe(struct platform_device *pdev); |
368 | static int f71882fg_remove(struct platform_device *pdev); | 368 | static int f71882fg_remove(struct platform_device *pdev); |
369 | 369 | ||
370 | static struct platform_driver f71882fg_driver = { | 370 | static struct platform_driver f71882fg_driver = { |
@@ -2145,7 +2145,7 @@ static ssize_t show_name(struct device *dev, struct device_attribute *devattr, | |||
2145 | return sprintf(buf, "%s\n", f71882fg_names[data->type]); | 2145 | return sprintf(buf, "%s\n", f71882fg_names[data->type]); |
2146 | } | 2146 | } |
2147 | 2147 | ||
2148 | static int __devinit f71882fg_create_sysfs_files(struct platform_device *pdev, | 2148 | static int f71882fg_create_sysfs_files(struct platform_device *pdev, |
2149 | struct sensor_device_attribute_2 *attr, int count) | 2149 | struct sensor_device_attribute_2 *attr, int count) |
2150 | { | 2150 | { |
2151 | int err, i; | 2151 | int err, i; |
@@ -2167,7 +2167,7 @@ static void f71882fg_remove_sysfs_files(struct platform_device *pdev, | |||
2167 | device_remove_file(&pdev->dev, &attr[i].dev_attr); | 2167 | device_remove_file(&pdev->dev, &attr[i].dev_attr); |
2168 | } | 2168 | } |
2169 | 2169 | ||
2170 | static int __devinit f71882fg_create_fan_sysfs_files( | 2170 | static int f71882fg_create_fan_sysfs_files( |
2171 | struct platform_device *pdev, int idx) | 2171 | struct platform_device *pdev, int idx) |
2172 | { | 2172 | { |
2173 | struct f71882fg_data *data = platform_get_drvdata(pdev); | 2173 | struct f71882fg_data *data = platform_get_drvdata(pdev); |
@@ -2265,7 +2265,7 @@ static int __devinit f71882fg_create_fan_sysfs_files( | |||
2265 | return err; | 2265 | return err; |
2266 | } | 2266 | } |
2267 | 2267 | ||
2268 | static int __devinit f71882fg_probe(struct platform_device *pdev) | 2268 | static int f71882fg_probe(struct platform_device *pdev) |
2269 | { | 2269 | { |
2270 | struct f71882fg_data *data; | 2270 | struct f71882fg_data *data; |
2271 | struct f71882fg_sio_data *sio_data = pdev->dev.platform_data; | 2271 | struct f71882fg_sio_data *sio_data = pdev->dev.platform_data; |
diff --git a/drivers/hwmon/fam15h_power.c b/drivers/hwmon/fam15h_power.c index 34ab2a8f9654..b757088aeddb 100644 --- a/drivers/hwmon/fam15h_power.c +++ b/drivers/hwmon/fam15h_power.c | |||
@@ -114,7 +114,7 @@ static const struct attribute_group fam15h_power_attr_group = { | |||
114 | .attrs = fam15h_power_attrs, | 114 | .attrs = fam15h_power_attrs, |
115 | }; | 115 | }; |
116 | 116 | ||
117 | static bool __devinit fam15h_power_is_internal_node0(struct pci_dev *f4) | 117 | static bool fam15h_power_is_internal_node0(struct pci_dev *f4) |
118 | { | 118 | { |
119 | u32 val; | 119 | u32 val; |
120 | 120 | ||
@@ -171,7 +171,7 @@ static int fam15h_power_resume(struct pci_dev *pdev) | |||
171 | #define fam15h_power_resume NULL | 171 | #define fam15h_power_resume NULL |
172 | #endif | 172 | #endif |
173 | 173 | ||
174 | static void __devinit fam15h_power_init_data(struct pci_dev *f4, | 174 | static void fam15h_power_init_data(struct pci_dev *f4, |
175 | struct fam15h_power_data *data) | 175 | struct fam15h_power_data *data) |
176 | { | 176 | { |
177 | u32 val; | 177 | u32 val; |
@@ -197,7 +197,7 @@ static void __devinit fam15h_power_init_data(struct pci_dev *f4, | |||
197 | data->processor_pwr_watts = (tmp * 15625) >> 10; | 197 | data->processor_pwr_watts = (tmp * 15625) >> 10; |
198 | } | 198 | } |
199 | 199 | ||
200 | static int __devinit fam15h_power_probe(struct pci_dev *pdev, | 200 | static int fam15h_power_probe(struct pci_dev *pdev, |
201 | const struct pci_device_id *id) | 201 | const struct pci_device_id *id) |
202 | { | 202 | { |
203 | struct fam15h_power_data *data; | 203 | struct fam15h_power_data *data; |
@@ -238,7 +238,7 @@ exit_remove_group: | |||
238 | return err; | 238 | return err; |
239 | } | 239 | } |
240 | 240 | ||
241 | static void __devexit fam15h_power_remove(struct pci_dev *pdev) | 241 | static void fam15h_power_remove(struct pci_dev *pdev) |
242 | { | 242 | { |
243 | struct device *dev; | 243 | struct device *dev; |
244 | struct fam15h_power_data *data; | 244 | struct fam15h_power_data *data; |
@@ -260,7 +260,7 @@ static struct pci_driver fam15h_power_driver = { | |||
260 | .name = "fam15h_power", | 260 | .name = "fam15h_power", |
261 | .id_table = fam15h_power_id_table, | 261 | .id_table = fam15h_power_id_table, |
262 | .probe = fam15h_power_probe, | 262 | .probe = fam15h_power_probe, |
263 | .remove = __devexit_p(fam15h_power_remove), | 263 | .remove = fam15h_power_remove, |
264 | .resume = fam15h_power_resume, | 264 | .resume = fam15h_power_resume, |
265 | }; | 265 | }; |
266 | 266 | ||
diff --git a/drivers/hwmon/gpio-fan.c b/drivers/hwmon/gpio-fan.c index 1381a2e3bbd4..4e04c1228e51 100644 --- a/drivers/hwmon/gpio-fan.c +++ b/drivers/hwmon/gpio-fan.c | |||
@@ -499,13 +499,13 @@ static int gpio_fan_get_of_pdata(struct device *dev, | |||
499 | return 0; | 499 | return 0; |
500 | } | 500 | } |
501 | 501 | ||
502 | static struct of_device_id of_gpio_fan_match[] __devinitdata = { | 502 | static struct of_device_id of_gpio_fan_match[] = { |
503 | { .compatible = "gpio-fan", }, | 503 | { .compatible = "gpio-fan", }, |
504 | {}, | 504 | {}, |
505 | }; | 505 | }; |
506 | #endif /* CONFIG_OF_GPIO */ | 506 | #endif /* CONFIG_OF_GPIO */ |
507 | 507 | ||
508 | static int __devinit gpio_fan_probe(struct platform_device *pdev) | 508 | static int gpio_fan_probe(struct platform_device *pdev) |
509 | { | 509 | { |
510 | int err; | 510 | int err; |
511 | struct gpio_fan_data *fan_data; | 511 | struct gpio_fan_data *fan_data; |
@@ -581,7 +581,7 @@ err_free_alarm: | |||
581 | return err; | 581 | return err; |
582 | } | 582 | } |
583 | 583 | ||
584 | static int __devexit gpio_fan_remove(struct platform_device *pdev) | 584 | static int gpio_fan_remove(struct platform_device *pdev) |
585 | { | 585 | { |
586 | struct gpio_fan_data *fan_data = platform_get_drvdata(pdev); | 586 | struct gpio_fan_data *fan_data = platform_get_drvdata(pdev); |
587 | 587 | ||
@@ -626,7 +626,7 @@ static SIMPLE_DEV_PM_OPS(gpio_fan_pm, gpio_fan_suspend, gpio_fan_resume); | |||
626 | 626 | ||
627 | static struct platform_driver gpio_fan_driver = { | 627 | static struct platform_driver gpio_fan_driver = { |
628 | .probe = gpio_fan_probe, | 628 | .probe = gpio_fan_probe, |
629 | .remove = __devexit_p(gpio_fan_remove), | 629 | .remove = gpio_fan_remove, |
630 | .driver = { | 630 | .driver = { |
631 | .name = "gpio-fan", | 631 | .name = "gpio-fan", |
632 | .pm = GPIO_FAN_PM, | 632 | .pm = GPIO_FAN_PM, |
diff --git a/drivers/hwmon/hih6130.c b/drivers/hwmon/hih6130.c index 9a675efaa78d..2dc37c7c6947 100644 --- a/drivers/hwmon/hih6130.c +++ b/drivers/hwmon/hih6130.c | |||
@@ -220,7 +220,7 @@ static const struct attribute_group hih6130_attr_group = { | |||
220 | * device's name. | 220 | * device's name. |
221 | * Returns 0 on success. | 221 | * Returns 0 on success. |
222 | */ | 222 | */ |
223 | static int __devinit hih6130_probe(struct i2c_client *client, | 223 | static int hih6130_probe(struct i2c_client *client, |
224 | const struct i2c_device_id *id) | 224 | const struct i2c_device_id *id) |
225 | { | 225 | { |
226 | struct hih6130 *hih6130; | 226 | struct hih6130 *hih6130; |
@@ -263,7 +263,7 @@ fail_remove_sysfs: | |||
263 | * hih6130_remove() - remove device | 263 | * hih6130_remove() - remove device |
264 | * @client: I2C client device | 264 | * @client: I2C client device |
265 | */ | 265 | */ |
266 | static int __devexit hih6130_remove(struct i2c_client *client) | 266 | static int hih6130_remove(struct i2c_client *client) |
267 | { | 267 | { |
268 | struct hih6130 *hih6130 = i2c_get_clientdata(client); | 268 | struct hih6130 *hih6130 = i2c_get_clientdata(client); |
269 | 269 | ||
@@ -283,7 +283,7 @@ MODULE_DEVICE_TABLE(i2c, hih6130_id); | |||
283 | static struct i2c_driver hih6130_driver = { | 283 | static struct i2c_driver hih6130_driver = { |
284 | .driver.name = "hih6130", | 284 | .driver.name = "hih6130", |
285 | .probe = hih6130_probe, | 285 | .probe = hih6130_probe, |
286 | .remove = __devexit_p(hih6130_remove), | 286 | .remove = hih6130_remove, |
287 | .id_table = hih6130_id, | 287 | .id_table = hih6130_id, |
288 | }; | 288 | }; |
289 | 289 | ||
diff --git a/drivers/hwmon/i5k_amb.c b/drivers/hwmon/i5k_amb.c index 46141abaafba..b87c2ccee06b 100644 --- a/drivers/hwmon/i5k_amb.c +++ b/drivers/hwmon/i5k_amb.c | |||
@@ -260,7 +260,7 @@ static ssize_t show_label(struct device *dev, | |||
260 | attr->index & DIMM_MASK); | 260 | attr->index & DIMM_MASK); |
261 | } | 261 | } |
262 | 262 | ||
263 | static int __devinit i5k_amb_hwmon_init(struct platform_device *pdev) | 263 | static int i5k_amb_hwmon_init(struct platform_device *pdev) |
264 | { | 264 | { |
265 | int i, j, k, d = 0; | 265 | int i, j, k, d = 0; |
266 | u16 c; | 266 | u16 c; |
@@ -406,7 +406,7 @@ exit_remove: | |||
406 | return res; | 406 | return res; |
407 | } | 407 | } |
408 | 408 | ||
409 | static int __devinit i5k_amb_add(void) | 409 | static int i5k_amb_add(void) |
410 | { | 410 | { |
411 | int res = -ENODEV; | 411 | int res = -ENODEV; |
412 | 412 | ||
@@ -425,7 +425,7 @@ err: | |||
425 | return res; | 425 | return res; |
426 | } | 426 | } |
427 | 427 | ||
428 | static int __devinit i5k_find_amb_registers(struct i5k_amb_data *data, | 428 | static int i5k_find_amb_registers(struct i5k_amb_data *data, |
429 | unsigned long devid) | 429 | unsigned long devid) |
430 | { | 430 | { |
431 | struct pci_dev *pcidev; | 431 | struct pci_dev *pcidev; |
@@ -459,7 +459,7 @@ out: | |||
459 | return res; | 459 | return res; |
460 | } | 460 | } |
461 | 461 | ||
462 | static int __devinit i5k_channel_probe(u16 *amb_present, unsigned long dev_id) | 462 | static int i5k_channel_probe(u16 *amb_present, unsigned long dev_id) |
463 | { | 463 | { |
464 | struct pci_dev *pcidev; | 464 | struct pci_dev *pcidev; |
465 | u16 val16; | 465 | u16 val16; |
@@ -488,14 +488,14 @@ out: | |||
488 | static struct { | 488 | static struct { |
489 | unsigned long err; | 489 | unsigned long err; |
490 | unsigned long fbd0; | 490 | unsigned long fbd0; |
491 | } chipset_ids[] __devinitdata = { | 491 | } chipset_ids[] = { |
492 | { PCI_DEVICE_ID_INTEL_5000_ERR, PCI_DEVICE_ID_INTEL_5000_FBD0 }, | 492 | { PCI_DEVICE_ID_INTEL_5000_ERR, PCI_DEVICE_ID_INTEL_5000_FBD0 }, |
493 | { PCI_DEVICE_ID_INTEL_5400_ERR, PCI_DEVICE_ID_INTEL_5400_FBD0 }, | 493 | { PCI_DEVICE_ID_INTEL_5400_ERR, PCI_DEVICE_ID_INTEL_5400_FBD0 }, |
494 | { 0, 0 } | 494 | { 0, 0 } |
495 | }; | 495 | }; |
496 | 496 | ||
497 | #ifdef MODULE | 497 | #ifdef MODULE |
498 | static struct pci_device_id i5k_amb_ids[] __devinitdata = { | 498 | static struct pci_device_id i5k_amb_ids[] = { |
499 | { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5000_ERR) }, | 499 | { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5000_ERR) }, |
500 | { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5400_ERR) }, | 500 | { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5400_ERR) }, |
501 | { 0, } | 501 | { 0, } |
@@ -503,7 +503,7 @@ static struct pci_device_id i5k_amb_ids[] __devinitdata = { | |||
503 | MODULE_DEVICE_TABLE(pci, i5k_amb_ids); | 503 | MODULE_DEVICE_TABLE(pci, i5k_amb_ids); |
504 | #endif | 504 | #endif |
505 | 505 | ||
506 | static int __devinit i5k_amb_probe(struct platform_device *pdev) | 506 | static int i5k_amb_probe(struct platform_device *pdev) |
507 | { | 507 | { |
508 | struct i5k_amb_data *data; | 508 | struct i5k_amb_data *data; |
509 | struct resource *reso; | 509 | struct resource *reso; |
@@ -564,7 +564,7 @@ err: | |||
564 | return res; | 564 | return res; |
565 | } | 565 | } |
566 | 566 | ||
567 | static int __devexit i5k_amb_remove(struct platform_device *pdev) | 567 | static int i5k_amb_remove(struct platform_device *pdev) |
568 | { | 568 | { |
569 | int i; | 569 | int i; |
570 | struct i5k_amb_data *data = platform_get_drvdata(pdev); | 570 | struct i5k_amb_data *data = platform_get_drvdata(pdev); |
@@ -587,7 +587,7 @@ static struct platform_driver i5k_amb_driver = { | |||
587 | .name = DRVNAME, | 587 | .name = DRVNAME, |
588 | }, | 588 | }, |
589 | .probe = i5k_amb_probe, | 589 | .probe = i5k_amb_probe, |
590 | .remove = __devexit_p(i5k_amb_remove), | 590 | .remove = i5k_amb_remove, |
591 | }; | 591 | }; |
592 | 592 | ||
593 | static int __init i5k_amb_init(void) | 593 | static int __init i5k_amb_init(void) |
diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c index f1de3979181f..d32aa354cbdf 100644 --- a/drivers/hwmon/it87.c +++ b/drivers/hwmon/it87.c | |||
@@ -428,7 +428,7 @@ static inline int has_old_autopwm(const struct it87_data *data) | |||
428 | } | 428 | } |
429 | 429 | ||
430 | static int it87_probe(struct platform_device *pdev); | 430 | static int it87_probe(struct platform_device *pdev); |
431 | static int __devexit it87_remove(struct platform_device *pdev); | 431 | static int it87_remove(struct platform_device *pdev); |
432 | 432 | ||
433 | static int it87_read_value(struct it87_data *data, u8 reg); | 433 | static int it87_read_value(struct it87_data *data, u8 reg); |
434 | static void it87_write_value(struct it87_data *data, u8 reg, u8 value); | 434 | static void it87_write_value(struct it87_data *data, u8 reg, u8 value); |
@@ -443,7 +443,7 @@ static struct platform_driver it87_driver = { | |||
443 | .name = DRVNAME, | 443 | .name = DRVNAME, |
444 | }, | 444 | }, |
445 | .probe = it87_probe, | 445 | .probe = it87_probe, |
446 | .remove = __devexit_p(it87_remove), | 446 | .remove = it87_remove, |
447 | }; | 447 | }; |
448 | 448 | ||
449 | static ssize_t show_in(struct device *dev, struct device_attribute *attr, | 449 | static ssize_t show_in(struct device *dev, struct device_attribute *attr, |
@@ -1966,7 +1966,7 @@ static void it87_remove_files(struct device *dev) | |||
1966 | sysfs_remove_group(&dev->kobj, &it87_group_label); | 1966 | sysfs_remove_group(&dev->kobj, &it87_group_label); |
1967 | } | 1967 | } |
1968 | 1968 | ||
1969 | static int __devinit it87_probe(struct platform_device *pdev) | 1969 | static int it87_probe(struct platform_device *pdev) |
1970 | { | 1970 | { |
1971 | struct it87_data *data; | 1971 | struct it87_data *data; |
1972 | struct resource *res; | 1972 | struct resource *res; |
@@ -2158,7 +2158,7 @@ error: | |||
2158 | return err; | 2158 | return err; |
2159 | } | 2159 | } |
2160 | 2160 | ||
2161 | static int __devexit it87_remove(struct platform_device *pdev) | 2161 | static int it87_remove(struct platform_device *pdev) |
2162 | { | 2162 | { |
2163 | struct it87_data *data = platform_get_drvdata(pdev); | 2163 | struct it87_data *data = platform_get_drvdata(pdev); |
2164 | 2164 | ||
@@ -2191,7 +2191,7 @@ static void it87_write_value(struct it87_data *data, u8 reg, u8 value) | |||
2191 | } | 2191 | } |
2192 | 2192 | ||
2193 | /* Return 1 if and only if the PWM interface is safe to use */ | 2193 | /* Return 1 if and only if the PWM interface is safe to use */ |
2194 | static int __devinit it87_check_pwm(struct device *dev) | 2194 | static int it87_check_pwm(struct device *dev) |
2195 | { | 2195 | { |
2196 | struct it87_data *data = dev_get_drvdata(dev); | 2196 | struct it87_data *data = dev_get_drvdata(dev); |
2197 | /* | 2197 | /* |
@@ -2248,7 +2248,7 @@ static int __devinit it87_check_pwm(struct device *dev) | |||
2248 | } | 2248 | } |
2249 | 2249 | ||
2250 | /* Called when we have found a new IT87. */ | 2250 | /* Called when we have found a new IT87. */ |
2251 | static void __devinit it87_init_device(struct platform_device *pdev) | 2251 | static void it87_init_device(struct platform_device *pdev) |
2252 | { | 2252 | { |
2253 | struct it87_sio_data *sio_data = pdev->dev.platform_data; | 2253 | struct it87_sio_data *sio_data = pdev->dev.platform_data; |
2254 | struct it87_data *data = platform_get_drvdata(pdev); | 2254 | struct it87_data *data = platform_get_drvdata(pdev); |
diff --git a/drivers/hwmon/jz4740-hwmon.c b/drivers/hwmon/jz4740-hwmon.c index dee9eec2036e..e0d66b9590ab 100644 --- a/drivers/hwmon/jz4740-hwmon.c +++ b/drivers/hwmon/jz4740-hwmon.c | |||
@@ -102,7 +102,7 @@ static const struct attribute_group jz4740_hwmon_attr_group = { | |||
102 | .attrs = jz4740_hwmon_attributes, | 102 | .attrs = jz4740_hwmon_attributes, |
103 | }; | 103 | }; |
104 | 104 | ||
105 | static int __devinit jz4740_hwmon_probe(struct platform_device *pdev) | 105 | static int jz4740_hwmon_probe(struct platform_device *pdev) |
106 | { | 106 | { |
107 | int ret; | 107 | int ret; |
108 | struct jz4740_hwmon *hwmon; | 108 | struct jz4740_hwmon *hwmon; |
@@ -172,7 +172,7 @@ err_remove_file: | |||
172 | return ret; | 172 | return ret; |
173 | } | 173 | } |
174 | 174 | ||
175 | static int __devexit jz4740_hwmon_remove(struct platform_device *pdev) | 175 | static int jz4740_hwmon_remove(struct platform_device *pdev) |
176 | { | 176 | { |
177 | struct jz4740_hwmon *hwmon = platform_get_drvdata(pdev); | 177 | struct jz4740_hwmon *hwmon = platform_get_drvdata(pdev); |
178 | 178 | ||
@@ -184,7 +184,7 @@ static int __devexit jz4740_hwmon_remove(struct platform_device *pdev) | |||
184 | 184 | ||
185 | static struct platform_driver jz4740_hwmon_driver = { | 185 | static struct platform_driver jz4740_hwmon_driver = { |
186 | .probe = jz4740_hwmon_probe, | 186 | .probe = jz4740_hwmon_probe, |
187 | .remove = __devexit_p(jz4740_hwmon_remove), | 187 | .remove = jz4740_hwmon_remove, |
188 | .driver = { | 188 | .driver = { |
189 | .name = "jz4740-hwmon", | 189 | .name = "jz4740-hwmon", |
190 | .owner = THIS_MODULE, | 190 | .owner = THIS_MODULE, |
diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c index f2fe8078633b..e3b037c73a7e 100644 --- a/drivers/hwmon/k10temp.c +++ b/drivers/hwmon/k10temp.c | |||
@@ -95,7 +95,7 @@ static SENSOR_DEVICE_ATTR(temp1_crit, S_IRUGO, show_temp_crit, NULL, 0); | |||
95 | static SENSOR_DEVICE_ATTR(temp1_crit_hyst, S_IRUGO, show_temp_crit, NULL, 1); | 95 | static SENSOR_DEVICE_ATTR(temp1_crit_hyst, S_IRUGO, show_temp_crit, NULL, 1); |
96 | static DEVICE_ATTR(name, S_IRUGO, show_name, NULL); | 96 | static DEVICE_ATTR(name, S_IRUGO, show_name, NULL); |
97 | 97 | ||
98 | static bool __devinit has_erratum_319(struct pci_dev *pdev) | 98 | static bool has_erratum_319(struct pci_dev *pdev) |
99 | { | 99 | { |
100 | u32 pkg_type, reg_dram_cfg; | 100 | u32 pkg_type, reg_dram_cfg; |
101 | 101 | ||
@@ -129,7 +129,7 @@ static bool __devinit has_erratum_319(struct pci_dev *pdev) | |||
129 | (boot_cpu_data.x86_model == 4 && boot_cpu_data.x86_mask <= 2); | 129 | (boot_cpu_data.x86_model == 4 && boot_cpu_data.x86_mask <= 2); |
130 | } | 130 | } |
131 | 131 | ||
132 | static int __devinit k10temp_probe(struct pci_dev *pdev, | 132 | static int k10temp_probe(struct pci_dev *pdev, |
133 | const struct pci_device_id *id) | 133 | const struct pci_device_id *id) |
134 | { | 134 | { |
135 | struct device *hwmon_dev; | 135 | struct device *hwmon_dev; |
@@ -192,7 +192,7 @@ exit: | |||
192 | return err; | 192 | return err; |
193 | } | 193 | } |
194 | 194 | ||
195 | static void __devexit k10temp_remove(struct pci_dev *pdev) | 195 | static void k10temp_remove(struct pci_dev *pdev) |
196 | { | 196 | { |
197 | hwmon_device_unregister(pci_get_drvdata(pdev)); | 197 | hwmon_device_unregister(pci_get_drvdata(pdev)); |
198 | device_remove_file(&pdev->dev, &dev_attr_name); | 198 | device_remove_file(&pdev->dev, &dev_attr_name); |
@@ -219,7 +219,7 @@ static struct pci_driver k10temp_driver = { | |||
219 | .name = "k10temp", | 219 | .name = "k10temp", |
220 | .id_table = k10temp_id_table, | 220 | .id_table = k10temp_id_table, |
221 | .probe = k10temp_probe, | 221 | .probe = k10temp_probe, |
222 | .remove = __devexit_p(k10temp_remove), | 222 | .remove = k10temp_remove, |
223 | }; | 223 | }; |
224 | 224 | ||
225 | module_pci_driver(k10temp_driver); | 225 | module_pci_driver(k10temp_driver); |
diff --git a/drivers/hwmon/k8temp.c b/drivers/hwmon/k8temp.c index e8c7fb0bbf95..9f3c0aeacdb9 100644 --- a/drivers/hwmon/k8temp.c +++ b/drivers/hwmon/k8temp.c | |||
@@ -142,7 +142,7 @@ static DEFINE_PCI_DEVICE_TABLE(k8temp_ids) = { | |||
142 | 142 | ||
143 | MODULE_DEVICE_TABLE(pci, k8temp_ids); | 143 | MODULE_DEVICE_TABLE(pci, k8temp_ids); |
144 | 144 | ||
145 | static int __devinit is_rev_g_desktop(u8 model) | 145 | static int is_rev_g_desktop(u8 model) |
146 | { | 146 | { |
147 | u32 brandidx; | 147 | u32 brandidx; |
148 | 148 | ||
@@ -173,7 +173,7 @@ static int __devinit is_rev_g_desktop(u8 model) | |||
173 | return 1; | 173 | return 1; |
174 | } | 174 | } |
175 | 175 | ||
176 | static int __devinit k8temp_probe(struct pci_dev *pdev, | 176 | static int k8temp_probe(struct pci_dev *pdev, |
177 | const struct pci_device_id *id) | 177 | const struct pci_device_id *id) |
178 | { | 178 | { |
179 | int err; | 179 | int err; |
@@ -304,7 +304,7 @@ exit_remove: | |||
304 | return err; | 304 | return err; |
305 | } | 305 | } |
306 | 306 | ||
307 | static void __devexit k8temp_remove(struct pci_dev *pdev) | 307 | static void k8temp_remove(struct pci_dev *pdev) |
308 | { | 308 | { |
309 | struct k8temp_data *data = pci_get_drvdata(pdev); | 309 | struct k8temp_data *data = pci_get_drvdata(pdev); |
310 | 310 | ||
@@ -324,7 +324,7 @@ static struct pci_driver k8temp_driver = { | |||
324 | .name = "k8temp", | 324 | .name = "k8temp", |
325 | .id_table = k8temp_ids, | 325 | .id_table = k8temp_ids, |
326 | .probe = k8temp_probe, | 326 | .probe = k8temp_probe, |
327 | .remove = __devexit_p(k8temp_remove), | 327 | .remove = k8temp_remove, |
328 | }; | 328 | }; |
329 | 329 | ||
330 | module_pci_driver(k8temp_driver); | 330 | module_pci_driver(k8temp_driver); |
diff --git a/drivers/hwmon/lm70.c b/drivers/hwmon/lm70.c index 2d1777a03edb..016efa26ba7c 100644 --- a/drivers/hwmon/lm70.c +++ b/drivers/hwmon/lm70.c | |||
@@ -131,7 +131,7 @@ static DEVICE_ATTR(name, S_IRUGO, lm70_show_name, NULL); | |||
131 | 131 | ||
132 | /*----------------------------------------------------------------------*/ | 132 | /*----------------------------------------------------------------------*/ |
133 | 133 | ||
134 | static int __devinit lm70_probe(struct spi_device *spi) | 134 | static int lm70_probe(struct spi_device *spi) |
135 | { | 135 | { |
136 | int chip = spi_get_device_id(spi)->driver_data; | 136 | int chip = spi_get_device_id(spi)->driver_data; |
137 | struct lm70 *p_lm70; | 137 | struct lm70 *p_lm70; |
@@ -178,7 +178,7 @@ out_dev_create_temp_file_failed: | |||
178 | return status; | 178 | return status; |
179 | } | 179 | } |
180 | 180 | ||
181 | static int __devexit lm70_remove(struct spi_device *spi) | 181 | static int lm70_remove(struct spi_device *spi) |
182 | { | 182 | { |
183 | struct lm70 *p_lm70 = spi_get_drvdata(spi); | 183 | struct lm70 *p_lm70 = spi_get_drvdata(spi); |
184 | 184 | ||
@@ -207,7 +207,7 @@ static struct spi_driver lm70_driver = { | |||
207 | }, | 207 | }, |
208 | .id_table = lm70_ids, | 208 | .id_table = lm70_ids, |
209 | .probe = lm70_probe, | 209 | .probe = lm70_probe, |
210 | .remove = __devexit_p(lm70_remove), | 210 | .remove = lm70_remove, |
211 | }; | 211 | }; |
212 | 212 | ||
213 | module_spi_driver(lm70_driver); | 213 | module_spi_driver(lm70_driver); |
diff --git a/drivers/hwmon/lm78.c b/drivers/hwmon/lm78.c index c6ffafe600ad..53d6ee8ffa33 100644 --- a/drivers/hwmon/lm78.c +++ b/drivers/hwmon/lm78.c | |||
@@ -833,7 +833,7 @@ static struct lm78_data *lm78_update_device(struct device *dev) | |||
833 | } | 833 | } |
834 | 834 | ||
835 | #ifdef CONFIG_ISA | 835 | #ifdef CONFIG_ISA |
836 | static int __devinit lm78_isa_probe(struct platform_device *pdev) | 836 | static int lm78_isa_probe(struct platform_device *pdev) |
837 | { | 837 | { |
838 | int err; | 838 | int err; |
839 | struct lm78_data *data; | 839 | struct lm78_data *data; |
@@ -886,7 +886,7 @@ static int __devinit lm78_isa_probe(struct platform_device *pdev) | |||
886 | return err; | 886 | return err; |
887 | } | 887 | } |
888 | 888 | ||
889 | static int __devexit lm78_isa_remove(struct platform_device *pdev) | 889 | static int lm78_isa_remove(struct platform_device *pdev) |
890 | { | 890 | { |
891 | struct lm78_data *data = platform_get_drvdata(pdev); | 891 | struct lm78_data *data = platform_get_drvdata(pdev); |
892 | 892 | ||
@@ -903,7 +903,7 @@ static struct platform_driver lm78_isa_driver = { | |||
903 | .name = "lm78", | 903 | .name = "lm78", |
904 | }, | 904 | }, |
905 | .probe = lm78_isa_probe, | 905 | .probe = lm78_isa_probe, |
906 | .remove = __devexit_p(lm78_isa_remove), | 906 | .remove = lm78_isa_remove, |
907 | }; | 907 | }; |
908 | 908 | ||
909 | /* return 1 if a supported chip is found, 0 otherwise */ | 909 | /* return 1 if a supported chip is found, 0 otherwise */ |
diff --git a/drivers/hwmon/max1111.c b/drivers/hwmon/max1111.c index b4eb0889c465..eda077de8a9f 100644 --- a/drivers/hwmon/max1111.c +++ b/drivers/hwmon/max1111.c | |||
@@ -157,7 +157,7 @@ static const struct attribute_group max1110_attr_group = { | |||
157 | .attrs = max1110_attributes, | 157 | .attrs = max1110_attributes, |
158 | }; | 158 | }; |
159 | 159 | ||
160 | static int __devinit setup_transfer(struct max1111_data *data) | 160 | static int setup_transfer(struct max1111_data *data) |
161 | { | 161 | { |
162 | struct spi_message *m; | 162 | struct spi_message *m; |
163 | struct spi_transfer *x; | 163 | struct spi_transfer *x; |
@@ -179,7 +179,7 @@ static int __devinit setup_transfer(struct max1111_data *data) | |||
179 | return 0; | 179 | return 0; |
180 | } | 180 | } |
181 | 181 | ||
182 | static int __devinit max1111_probe(struct spi_device *spi) | 182 | static int max1111_probe(struct spi_device *spi) |
183 | { | 183 | { |
184 | enum chips chip = spi_get_device_id(spi)->driver_data; | 184 | enum chips chip = spi_get_device_id(spi)->driver_data; |
185 | struct max1111_data *data; | 185 | struct max1111_data *data; |
@@ -256,7 +256,7 @@ err_remove: | |||
256 | return err; | 256 | return err; |
257 | } | 257 | } |
258 | 258 | ||
259 | static int __devexit max1111_remove(struct spi_device *spi) | 259 | static int max1111_remove(struct spi_device *spi) |
260 | { | 260 | { |
261 | struct max1111_data *data = spi_get_drvdata(spi); | 261 | struct max1111_data *data = spi_get_drvdata(spi); |
262 | 262 | ||
@@ -283,7 +283,7 @@ static struct spi_driver max1111_driver = { | |||
283 | }, | 283 | }, |
284 | .id_table = max1111_ids, | 284 | .id_table = max1111_ids, |
285 | .probe = max1111_probe, | 285 | .probe = max1111_probe, |
286 | .remove = __devexit_p(max1111_remove), | 286 | .remove = max1111_remove, |
287 | }; | 287 | }; |
288 | 288 | ||
289 | module_spi_driver(max1111_driver); | 289 | module_spi_driver(max1111_driver); |
diff --git a/drivers/hwmon/max197.c b/drivers/hwmon/max197.c index 6304f2616fa7..b5ebb9198c75 100644 --- a/drivers/hwmon/max197.c +++ b/drivers/hwmon/max197.c | |||
@@ -257,7 +257,7 @@ static const struct attribute_group max197_sysfs_group = { | |||
257 | }, | 257 | }, |
258 | }; | 258 | }; |
259 | 259 | ||
260 | static int __devinit max197_probe(struct platform_device *pdev) | 260 | static int max197_probe(struct platform_device *pdev) |
261 | { | 261 | { |
262 | int ch, ret; | 262 | int ch, ret; |
263 | struct max197_data *data; | 263 | struct max197_data *data; |
@@ -316,7 +316,7 @@ error: | |||
316 | return ret; | 316 | return ret; |
317 | } | 317 | } |
318 | 318 | ||
319 | static int __devexit max197_remove(struct platform_device *pdev) | 319 | static int max197_remove(struct platform_device *pdev) |
320 | { | 320 | { |
321 | struct max197_data *data = platform_get_drvdata(pdev); | 321 | struct max197_data *data = platform_get_drvdata(pdev); |
322 | 322 | ||
@@ -339,7 +339,7 @@ static struct platform_driver max197_driver = { | |||
339 | .owner = THIS_MODULE, | 339 | .owner = THIS_MODULE, |
340 | }, | 340 | }, |
341 | .probe = max197_probe, | 341 | .probe = max197_probe, |
342 | .remove = __devexit_p(max197_remove), | 342 | .remove = max197_remove, |
343 | .id_table = max197_device_ids, | 343 | .id_table = max197_device_ids, |
344 | }; | 344 | }; |
345 | module_platform_driver(max197_driver); | 345 | module_platform_driver(max197_driver); |
diff --git a/drivers/hwmon/mc13783-adc.c b/drivers/hwmon/mc13783-adc.c index cf47a59657a9..2a7f331cd3c0 100644 --- a/drivers/hwmon/mc13783-adc.c +++ b/drivers/hwmon/mc13783-adc.c | |||
@@ -233,7 +233,7 @@ out_err_create_16chans: | |||
233 | return ret; | 233 | return ret; |
234 | } | 234 | } |
235 | 235 | ||
236 | static int __devexit mc13783_adc_remove(struct platform_device *pdev) | 236 | static int mc13783_adc_remove(struct platform_device *pdev) |
237 | { | 237 | { |
238 | struct mc13783_adc_priv *priv = platform_get_drvdata(pdev); | 238 | struct mc13783_adc_priv *priv = platform_get_drvdata(pdev); |
239 | kernel_ulong_t driver_data = platform_get_device_id(pdev)->driver_data; | 239 | kernel_ulong_t driver_data = platform_get_device_id(pdev)->driver_data; |
@@ -265,7 +265,7 @@ static const struct platform_device_id mc13783_adc_idtable[] = { | |||
265 | MODULE_DEVICE_TABLE(platform, mc13783_adc_idtable); | 265 | MODULE_DEVICE_TABLE(platform, mc13783_adc_idtable); |
266 | 266 | ||
267 | static struct platform_driver mc13783_adc_driver = { | 267 | static struct platform_driver mc13783_adc_driver = { |
268 | .remove = __devexit_p(mc13783_adc_remove), | 268 | .remove = mc13783_adc_remove, |
269 | .driver = { | 269 | .driver = { |
270 | .owner = THIS_MODULE, | 270 | .owner = THIS_MODULE, |
271 | .name = DRIVER_NAME, | 271 | .name = DRIVER_NAME, |
diff --git a/drivers/hwmon/ntc_thermistor.c b/drivers/hwmon/ntc_thermistor.c index 74a6c58d0218..a87eb8986e36 100644 --- a/drivers/hwmon/ntc_thermistor.c +++ b/drivers/hwmon/ntc_thermistor.c | |||
@@ -309,7 +309,7 @@ static const struct attribute_group ntc_attr_group = { | |||
309 | .attrs = ntc_attributes, | 309 | .attrs = ntc_attributes, |
310 | }; | 310 | }; |
311 | 311 | ||
312 | static int __devinit ntc_thermistor_probe(struct platform_device *pdev) | 312 | static int ntc_thermistor_probe(struct platform_device *pdev) |
313 | { | 313 | { |
314 | struct ntc_data *data; | 314 | struct ntc_data *data; |
315 | struct ntc_thermistor_platform_data *pdata = pdev->dev.platform_data; | 315 | struct ntc_thermistor_platform_data *pdata = pdev->dev.platform_data; |
@@ -393,7 +393,7 @@ err_after_sysfs: | |||
393 | return ret; | 393 | return ret; |
394 | } | 394 | } |
395 | 395 | ||
396 | static int __devexit ntc_thermistor_remove(struct platform_device *pdev) | 396 | static int ntc_thermistor_remove(struct platform_device *pdev) |
397 | { | 397 | { |
398 | struct ntc_data *data = platform_get_drvdata(pdev); | 398 | struct ntc_data *data = platform_get_drvdata(pdev); |
399 | 399 | ||
@@ -419,7 +419,7 @@ static struct platform_driver ntc_thermistor_driver = { | |||
419 | .owner = THIS_MODULE, | 419 | .owner = THIS_MODULE, |
420 | }, | 420 | }, |
421 | .probe = ntc_thermistor_probe, | 421 | .probe = ntc_thermistor_probe, |
422 | .remove = __devexit_p(ntc_thermistor_remove), | 422 | .remove = ntc_thermistor_remove, |
423 | .id_table = ntc_thermistor_id, | 423 | .id_table = ntc_thermistor_id, |
424 | }; | 424 | }; |
425 | 425 | ||
diff --git a/drivers/hwmon/pc87360.c b/drivers/hwmon/pc87360.c index 91d5b2a21dd9..e35856bb79b4 100644 --- a/drivers/hwmon/pc87360.c +++ b/drivers/hwmon/pc87360.c | |||
@@ -228,7 +228,7 @@ struct pc87360_data { | |||
228 | */ | 228 | */ |
229 | 229 | ||
230 | static int pc87360_probe(struct platform_device *pdev); | 230 | static int pc87360_probe(struct platform_device *pdev); |
231 | static int __devexit pc87360_remove(struct platform_device *pdev); | 231 | static int pc87360_remove(struct platform_device *pdev); |
232 | 232 | ||
233 | static int pc87360_read_value(struct pc87360_data *data, u8 ldi, u8 bank, | 233 | static int pc87360_read_value(struct pc87360_data *data, u8 ldi, u8 bank, |
234 | u8 reg); | 234 | u8 reg); |
@@ -248,7 +248,7 @@ static struct platform_driver pc87360_driver = { | |||
248 | .name = "pc87360", | 248 | .name = "pc87360", |
249 | }, | 249 | }, |
250 | .probe = pc87360_probe, | 250 | .probe = pc87360_probe, |
251 | .remove = __devexit_p(pc87360_remove), | 251 | .remove = pc87360_remove, |
252 | }; | 252 | }; |
253 | 253 | ||
254 | /* | 254 | /* |
@@ -1221,7 +1221,7 @@ static void pc87360_remove_files(struct device *dev) | |||
1221 | sysfs_remove_group(&dev->kobj, &pc8736x_vin_group); | 1221 | sysfs_remove_group(&dev->kobj, &pc8736x_vin_group); |
1222 | } | 1222 | } |
1223 | 1223 | ||
1224 | static int __devinit pc87360_probe(struct platform_device *pdev) | 1224 | static int pc87360_probe(struct platform_device *pdev) |
1225 | { | 1225 | { |
1226 | int i; | 1226 | int i; |
1227 | struct pc87360_data *data; | 1227 | struct pc87360_data *data; |
@@ -1375,7 +1375,7 @@ error: | |||
1375 | return err; | 1375 | return err; |
1376 | } | 1376 | } |
1377 | 1377 | ||
1378 | static int __devexit pc87360_remove(struct platform_device *pdev) | 1378 | static int pc87360_remove(struct platform_device *pdev) |
1379 | { | 1379 | { |
1380 | struct pc87360_data *data = platform_get_drvdata(pdev); | 1380 | struct pc87360_data *data = platform_get_drvdata(pdev); |
1381 | 1381 | ||
diff --git a/drivers/hwmon/pc87427.c b/drivers/hwmon/pc87427.c index f185b1fa53e5..6086ad039d7d 100644 --- a/drivers/hwmon/pc87427.c +++ b/drivers/hwmon/pc87427.c | |||
@@ -956,7 +956,7 @@ static DEVICE_ATTR(name, S_IRUGO, show_name, NULL); | |||
956 | * Device detection, attach and detach | 956 | * Device detection, attach and detach |
957 | */ | 957 | */ |
958 | 958 | ||
959 | static int __devinit pc87427_request_regions(struct platform_device *pdev, | 959 | static int pc87427_request_regions(struct platform_device *pdev, |
960 | int count) | 960 | int count) |
961 | { | 961 | { |
962 | struct resource *res; | 962 | struct resource *res; |
@@ -980,7 +980,7 @@ static int __devinit pc87427_request_regions(struct platform_device *pdev, | |||
980 | return 0; | 980 | return 0; |
981 | } | 981 | } |
982 | 982 | ||
983 | static void __devinit pc87427_init_device(struct device *dev) | 983 | static void pc87427_init_device(struct device *dev) |
984 | { | 984 | { |
985 | struct pc87427_sio_data *sio_data = dev->platform_data; | 985 | struct pc87427_sio_data *sio_data = dev->platform_data; |
986 | struct pc87427_data *data = dev_get_drvdata(dev); | 986 | struct pc87427_data *data = dev_get_drvdata(dev); |
@@ -1072,7 +1072,7 @@ static void pc87427_remove_files(struct device *dev) | |||
1072 | } | 1072 | } |
1073 | } | 1073 | } |
1074 | 1074 | ||
1075 | static int __devinit pc87427_probe(struct platform_device *pdev) | 1075 | static int pc87427_probe(struct platform_device *pdev) |
1076 | { | 1076 | { |
1077 | struct pc87427_sio_data *sio_data = pdev->dev.platform_data; | 1077 | struct pc87427_sio_data *sio_data = pdev->dev.platform_data; |
1078 | struct pc87427_data *data; | 1078 | struct pc87427_data *data; |
@@ -1141,7 +1141,7 @@ exit_remove_files: | |||
1141 | return err; | 1141 | return err; |
1142 | } | 1142 | } |
1143 | 1143 | ||
1144 | static int __devexit pc87427_remove(struct platform_device *pdev) | 1144 | static int pc87427_remove(struct platform_device *pdev) |
1145 | { | 1145 | { |
1146 | struct pc87427_data *data = platform_get_drvdata(pdev); | 1146 | struct pc87427_data *data = platform_get_drvdata(pdev); |
1147 | 1147 | ||
@@ -1158,7 +1158,7 @@ static struct platform_driver pc87427_driver = { | |||
1158 | .name = DRVNAME, | 1158 | .name = DRVNAME, |
1159 | }, | 1159 | }, |
1160 | .probe = pc87427_probe, | 1160 | .probe = pc87427_probe, |
1161 | .remove = __devexit_p(pc87427_remove), | 1161 | .remove = pc87427_remove, |
1162 | }; | 1162 | }; |
1163 | 1163 | ||
1164 | static int __init pc87427_device_add(const struct pc87427_sio_data *sio_data) | 1164 | static int __init pc87427_device_add(const struct pc87427_sio_data *sio_data) |
diff --git a/drivers/hwmon/s3c-hwmon.c b/drivers/hwmon/s3c-hwmon.c index bcecd025fcc4..ff2ae0252a48 100644 --- a/drivers/hwmon/s3c-hwmon.c +++ b/drivers/hwmon/s3c-hwmon.c | |||
@@ -275,7 +275,7 @@ static void s3c_hwmon_remove_attr(struct device *dev, | |||
275 | * s3c_hwmon_probe - device probe entry. | 275 | * s3c_hwmon_probe - device probe entry. |
276 | * @dev: The device being probed. | 276 | * @dev: The device being probed. |
277 | */ | 277 | */ |
278 | static int __devinit s3c_hwmon_probe(struct platform_device *dev) | 278 | static int s3c_hwmon_probe(struct platform_device *dev) |
279 | { | 279 | { |
280 | struct s3c_hwmon_pdata *pdata = dev->dev.platform_data; | 280 | struct s3c_hwmon_pdata *pdata = dev->dev.platform_data; |
281 | struct s3c_hwmon *hwmon; | 281 | struct s3c_hwmon *hwmon; |
@@ -364,7 +364,7 @@ static int __devinit s3c_hwmon_probe(struct platform_device *dev) | |||
364 | return ret; | 364 | return ret; |
365 | } | 365 | } |
366 | 366 | ||
367 | static int __devexit s3c_hwmon_remove(struct platform_device *dev) | 367 | static int s3c_hwmon_remove(struct platform_device *dev) |
368 | { | 368 | { |
369 | struct s3c_hwmon *hwmon = platform_get_drvdata(dev); | 369 | struct s3c_hwmon *hwmon = platform_get_drvdata(dev); |
370 | int i; | 370 | int i; |
@@ -386,7 +386,7 @@ static struct platform_driver s3c_hwmon_driver = { | |||
386 | .owner = THIS_MODULE, | 386 | .owner = THIS_MODULE, |
387 | }, | 387 | }, |
388 | .probe = s3c_hwmon_probe, | 388 | .probe = s3c_hwmon_probe, |
389 | .remove = __devexit_p(s3c_hwmon_remove), | 389 | .remove = s3c_hwmon_remove, |
390 | }; | 390 | }; |
391 | 391 | ||
392 | module_platform_driver(s3c_hwmon_driver); | 392 | module_platform_driver(s3c_hwmon_driver); |
diff --git a/drivers/hwmon/sch5627.c b/drivers/hwmon/sch5627.c index 49f6230bdcf1..0cc99fd83e8e 100644 --- a/drivers/hwmon/sch5627.c +++ b/drivers/hwmon/sch5627.c | |||
@@ -153,7 +153,7 @@ abort: | |||
153 | return ret; | 153 | return ret; |
154 | } | 154 | } |
155 | 155 | ||
156 | static int __devinit sch5627_read_limits(struct sch5627_data *data) | 156 | static int sch5627_read_limits(struct sch5627_data *data) |
157 | { | 157 | { |
158 | int i, val; | 158 | int i, val; |
159 | 159 | ||
@@ -465,7 +465,7 @@ static int sch5627_remove(struct platform_device *pdev) | |||
465 | return 0; | 465 | return 0; |
466 | } | 466 | } |
467 | 467 | ||
468 | static int __devinit sch5627_probe(struct platform_device *pdev) | 468 | static int sch5627_probe(struct platform_device *pdev) |
469 | { | 469 | { |
470 | struct sch5627_data *data; | 470 | struct sch5627_data *data; |
471 | int err, build_code, build_id, hwmon_rev, val; | 471 | int err, build_code, build_id, hwmon_rev, val; |
diff --git a/drivers/hwmon/sch5636.c b/drivers/hwmon/sch5636.c index 517118016192..547b5c952eff 100644 --- a/drivers/hwmon/sch5636.c +++ b/drivers/hwmon/sch5636.c | |||
@@ -405,7 +405,7 @@ static int sch5636_remove(struct platform_device *pdev) | |||
405 | return 0; | 405 | return 0; |
406 | } | 406 | } |
407 | 407 | ||
408 | static int __devinit sch5636_probe(struct platform_device *pdev) | 408 | static int sch5636_probe(struct platform_device *pdev) |
409 | { | 409 | { |
410 | struct sch5636_data *data; | 410 | struct sch5636_data *data; |
411 | int i, err, val, revision[2]; | 411 | int i, err, val, revision[2]; |
diff --git a/drivers/hwmon/sht15.c b/drivers/hwmon/sht15.c index 07a0c1a0b84d..1c85d39df171 100644 --- a/drivers/hwmon/sht15.c +++ b/drivers/hwmon/sht15.c | |||
@@ -884,7 +884,7 @@ static int sht15_invalidate_voltage(struct notifier_block *nb, | |||
884 | return NOTIFY_OK; | 884 | return NOTIFY_OK; |
885 | } | 885 | } |
886 | 886 | ||
887 | static int __devinit sht15_probe(struct platform_device *pdev) | 887 | static int sht15_probe(struct platform_device *pdev) |
888 | { | 888 | { |
889 | int ret; | 889 | int ret; |
890 | struct sht15_data *data; | 890 | struct sht15_data *data; |
@@ -1002,7 +1002,7 @@ err_release_reg: | |||
1002 | return ret; | 1002 | return ret; |
1003 | } | 1003 | } |
1004 | 1004 | ||
1005 | static int __devexit sht15_remove(struct platform_device *pdev) | 1005 | static int sht15_remove(struct platform_device *pdev) |
1006 | { | 1006 | { |
1007 | struct sht15_data *data = platform_get_drvdata(pdev); | 1007 | struct sht15_data *data = platform_get_drvdata(pdev); |
1008 | 1008 | ||
@@ -1043,7 +1043,7 @@ static struct platform_driver sht15_driver = { | |||
1043 | .owner = THIS_MODULE, | 1043 | .owner = THIS_MODULE, |
1044 | }, | 1044 | }, |
1045 | .probe = sht15_probe, | 1045 | .probe = sht15_probe, |
1046 | .remove = __devexit_p(sht15_remove), | 1046 | .remove = sht15_remove, |
1047 | .id_table = sht15_device_ids, | 1047 | .id_table = sht15_device_ids, |
1048 | }; | 1048 | }; |
1049 | module_platform_driver(sht15_driver); | 1049 | module_platform_driver(sht15_driver); |
diff --git a/drivers/hwmon/sht21.c b/drivers/hwmon/sht21.c index 5f67546950b1..2e9f9570b6f8 100644 --- a/drivers/hwmon/sht21.c +++ b/drivers/hwmon/sht21.c | |||
@@ -187,7 +187,7 @@ static const struct attribute_group sht21_attr_group = { | |||
187 | * device's name. | 187 | * device's name. |
188 | * Returns 0 on success. | 188 | * Returns 0 on success. |
189 | */ | 189 | */ |
190 | static int __devinit sht21_probe(struct i2c_client *client, | 190 | static int sht21_probe(struct i2c_client *client, |
191 | const struct i2c_device_id *id) | 191 | const struct i2c_device_id *id) |
192 | { | 192 | { |
193 | struct sht21 *sht21; | 193 | struct sht21 *sht21; |
@@ -233,7 +233,7 @@ fail_remove_sysfs: | |||
233 | * sht21_remove() - remove device | 233 | * sht21_remove() - remove device |
234 | * @client: I2C client device | 234 | * @client: I2C client device |
235 | */ | 235 | */ |
236 | static int __devexit sht21_remove(struct i2c_client *client) | 236 | static int sht21_remove(struct i2c_client *client) |
237 | { | 237 | { |
238 | struct sht21 *sht21 = i2c_get_clientdata(client); | 238 | struct sht21 *sht21 = i2c_get_clientdata(client); |
239 | 239 | ||
@@ -253,7 +253,7 @@ MODULE_DEVICE_TABLE(i2c, sht21_id); | |||
253 | static struct i2c_driver sht21_driver = { | 253 | static struct i2c_driver sht21_driver = { |
254 | .driver.name = "sht21", | 254 | .driver.name = "sht21", |
255 | .probe = sht21_probe, | 255 | .probe = sht21_probe, |
256 | .remove = __devexit_p(sht21_remove), | 256 | .remove = sht21_remove, |
257 | .id_table = sht21_id, | 257 | .id_table = sht21_id, |
258 | }; | 258 | }; |
259 | 259 | ||
diff --git a/drivers/hwmon/sis5595.c b/drivers/hwmon/sis5595.c index 8275f0e14eb7..06ce3c911db9 100644 --- a/drivers/hwmon/sis5595.c +++ b/drivers/hwmon/sis5595.c | |||
@@ -204,7 +204,7 @@ struct sis5595_data { | |||
204 | static struct pci_dev *s_bridge; /* pointer to the (only) sis5595 */ | 204 | static struct pci_dev *s_bridge; /* pointer to the (only) sis5595 */ |
205 | 205 | ||
206 | static int sis5595_probe(struct platform_device *pdev); | 206 | static int sis5595_probe(struct platform_device *pdev); |
207 | static int __devexit sis5595_remove(struct platform_device *pdev); | 207 | static int sis5595_remove(struct platform_device *pdev); |
208 | 208 | ||
209 | static int sis5595_read_value(struct sis5595_data *data, u8 reg); | 209 | static int sis5595_read_value(struct sis5595_data *data, u8 reg); |
210 | static void sis5595_write_value(struct sis5595_data *data, u8 reg, u8 value); | 210 | static void sis5595_write_value(struct sis5595_data *data, u8 reg, u8 value); |
@@ -217,7 +217,7 @@ static struct platform_driver sis5595_driver = { | |||
217 | .name = "sis5595", | 217 | .name = "sis5595", |
218 | }, | 218 | }, |
219 | .probe = sis5595_probe, | 219 | .probe = sis5595_probe, |
220 | .remove = __devexit_p(sis5595_remove), | 220 | .remove = sis5595_remove, |
221 | }; | 221 | }; |
222 | 222 | ||
223 | /* 4 Voltages */ | 223 | /* 4 Voltages */ |
@@ -583,7 +583,7 @@ static const struct attribute_group sis5595_group_temp1 = { | |||
583 | }; | 583 | }; |
584 | 584 | ||
585 | /* This is called when the module is loaded */ | 585 | /* This is called when the module is loaded */ |
586 | static int __devinit sis5595_probe(struct platform_device *pdev) | 586 | static int sis5595_probe(struct platform_device *pdev) |
587 | { | 587 | { |
588 | int err = 0; | 588 | int err = 0; |
589 | int i; | 589 | int i; |
@@ -659,7 +659,7 @@ exit_remove_files: | |||
659 | return err; | 659 | return err; |
660 | } | 660 | } |
661 | 661 | ||
662 | static int __devexit sis5595_remove(struct platform_device *pdev) | 662 | static int sis5595_remove(struct platform_device *pdev) |
663 | { | 663 | { |
664 | struct sis5595_data *data = platform_get_drvdata(pdev); | 664 | struct sis5595_data *data = platform_get_drvdata(pdev); |
665 | 665 | ||
@@ -693,7 +693,7 @@ static void sis5595_write_value(struct sis5595_data *data, u8 reg, u8 value) | |||
693 | } | 693 | } |
694 | 694 | ||
695 | /* Called when we have found a new SIS5595. */ | 695 | /* Called when we have found a new SIS5595. */ |
696 | static void __devinit sis5595_init_device(struct sis5595_data *data) | 696 | static void sis5595_init_device(struct sis5595_data *data) |
697 | { | 697 | { |
698 | u8 config = sis5595_read_value(data, SIS5595_REG_CONFIG); | 698 | u8 config = sis5595_read_value(data, SIS5595_REG_CONFIG); |
699 | if (!(config & 0x01)) | 699 | if (!(config & 0x01)) |
@@ -758,7 +758,7 @@ static DEFINE_PCI_DEVICE_TABLE(sis5595_pci_ids) = { | |||
758 | 758 | ||
759 | MODULE_DEVICE_TABLE(pci, sis5595_pci_ids); | 759 | MODULE_DEVICE_TABLE(pci, sis5595_pci_ids); |
760 | 760 | ||
761 | static int blacklist[] __devinitdata = { | 761 | static int blacklist[] = { |
762 | PCI_DEVICE_ID_SI_540, | 762 | PCI_DEVICE_ID_SI_540, |
763 | PCI_DEVICE_ID_SI_550, | 763 | PCI_DEVICE_ID_SI_550, |
764 | PCI_DEVICE_ID_SI_630, | 764 | PCI_DEVICE_ID_SI_630, |
@@ -774,7 +774,7 @@ static int blacklist[] __devinitdata = { | |||
774 | PCI_DEVICE_ID_SI_5598, | 774 | PCI_DEVICE_ID_SI_5598, |
775 | 0 }; | 775 | 0 }; |
776 | 776 | ||
777 | static int __devinit sis5595_device_add(unsigned short address) | 777 | static int sis5595_device_add(unsigned short address) |
778 | { | 778 | { |
779 | struct resource res = { | 779 | struct resource res = { |
780 | .start = address, | 780 | .start = address, |
@@ -815,7 +815,7 @@ exit: | |||
815 | return err; | 815 | return err; |
816 | } | 816 | } |
817 | 817 | ||
818 | static int __devinit sis5595_pci_probe(struct pci_dev *dev, | 818 | static int sis5595_pci_probe(struct pci_dev *dev, |
819 | const struct pci_device_id *id) | 819 | const struct pci_device_id *id) |
820 | { | 820 | { |
821 | u16 address; | 821 | u16 address; |
diff --git a/drivers/hwmon/smsc47b397.c b/drivers/hwmon/smsc47b397.c index 65b07de11a0f..81348fadf3b6 100644 --- a/drivers/hwmon/smsc47b397.c +++ b/drivers/hwmon/smsc47b397.c | |||
@@ -228,7 +228,7 @@ static const struct attribute_group smsc47b397_group = { | |||
228 | .attrs = smsc47b397_attributes, | 228 | .attrs = smsc47b397_attributes, |
229 | }; | 229 | }; |
230 | 230 | ||
231 | static int __devexit smsc47b397_remove(struct platform_device *pdev) | 231 | static int smsc47b397_remove(struct platform_device *pdev) |
232 | { | 232 | { |
233 | struct smsc47b397_data *data = platform_get_drvdata(pdev); | 233 | struct smsc47b397_data *data = platform_get_drvdata(pdev); |
234 | 234 | ||
@@ -246,10 +246,10 @@ static struct platform_driver smsc47b397_driver = { | |||
246 | .name = DRVNAME, | 246 | .name = DRVNAME, |
247 | }, | 247 | }, |
248 | .probe = smsc47b397_probe, | 248 | .probe = smsc47b397_probe, |
249 | .remove = __devexit_p(smsc47b397_remove), | 249 | .remove = smsc47b397_remove, |
250 | }; | 250 | }; |
251 | 251 | ||
252 | static int __devinit smsc47b397_probe(struct platform_device *pdev) | 252 | static int smsc47b397_probe(struct platform_device *pdev) |
253 | { | 253 | { |
254 | struct device *dev = &pdev->dev; | 254 | struct device *dev = &pdev->dev; |
255 | struct smsc47b397_data *data; | 255 | struct smsc47b397_data *data; |
diff --git a/drivers/hwmon/tmp102.c b/drivers/hwmon/tmp102.c index b8777e54190a..b10c3d36ccbc 100644 --- a/drivers/hwmon/tmp102.c +++ b/drivers/hwmon/tmp102.c | |||
@@ -147,7 +147,7 @@ static const struct attribute_group tmp102_attr_group = { | |||
147 | #define TMP102_CONFIG (TMP102_CONF_TM | TMP102_CONF_EM | TMP102_CONF_CR1) | 147 | #define TMP102_CONFIG (TMP102_CONF_TM | TMP102_CONF_EM | TMP102_CONF_CR1) |
148 | #define TMP102_CONFIG_RD_ONLY (TMP102_CONF_R0 | TMP102_CONF_R1 | TMP102_CONF_AL) | 148 | #define TMP102_CONFIG_RD_ONLY (TMP102_CONF_R0 | TMP102_CONF_R1 | TMP102_CONF_AL) |
149 | 149 | ||
150 | static int __devinit tmp102_probe(struct i2c_client *client, | 150 | static int tmp102_probe(struct i2c_client *client, |
151 | const struct i2c_device_id *id) | 151 | const struct i2c_device_id *id) |
152 | { | 152 | { |
153 | struct tmp102 *tmp102; | 153 | struct tmp102 *tmp102; |
@@ -216,7 +216,7 @@ fail_restore_config: | |||
216 | return status; | 216 | return status; |
217 | } | 217 | } |
218 | 218 | ||
219 | static int __devexit tmp102_remove(struct i2c_client *client) | 219 | static int tmp102_remove(struct i2c_client *client) |
220 | { | 220 | { |
221 | struct tmp102 *tmp102 = i2c_get_clientdata(client); | 221 | struct tmp102 *tmp102 = i2c_get_clientdata(client); |
222 | 222 | ||
@@ -283,7 +283,7 @@ static struct i2c_driver tmp102_driver = { | |||
283 | .driver.name = DRIVER_NAME, | 283 | .driver.name = DRIVER_NAME, |
284 | .driver.pm = TMP102_DEV_PM_OPS, | 284 | .driver.pm = TMP102_DEV_PM_OPS, |
285 | .probe = tmp102_probe, | 285 | .probe = tmp102_probe, |
286 | .remove = __devexit_p(tmp102_remove), | 286 | .remove = tmp102_remove, |
287 | .id_table = tmp102_id, | 287 | .id_table = tmp102_id, |
288 | }; | 288 | }; |
289 | 289 | ||
diff --git a/drivers/hwmon/twl4030-madc-hwmon.c b/drivers/hwmon/twl4030-madc-hwmon.c index 1a174f0a3cde..149d44a7c584 100644 --- a/drivers/hwmon/twl4030-madc-hwmon.c +++ b/drivers/hwmon/twl4030-madc-hwmon.c | |||
@@ -96,7 +96,7 @@ static const struct attribute_group twl4030_madc_group = { | |||
96 | .attrs = twl4030_madc_attributes, | 96 | .attrs = twl4030_madc_attributes, |
97 | }; | 97 | }; |
98 | 98 | ||
99 | static int __devinit twl4030_madc_hwmon_probe(struct platform_device *pdev) | 99 | static int twl4030_madc_hwmon_probe(struct platform_device *pdev) |
100 | { | 100 | { |
101 | int ret; | 101 | int ret; |
102 | struct device *hwmon; | 102 | struct device *hwmon; |
@@ -120,7 +120,7 @@ err_sysfs: | |||
120 | return ret; | 120 | return ret; |
121 | } | 121 | } |
122 | 122 | ||
123 | static int __devexit twl4030_madc_hwmon_remove(struct platform_device *pdev) | 123 | static int twl4030_madc_hwmon_remove(struct platform_device *pdev) |
124 | { | 124 | { |
125 | hwmon_device_unregister(&pdev->dev); | 125 | hwmon_device_unregister(&pdev->dev); |
126 | sysfs_remove_group(&pdev->dev.kobj, &twl4030_madc_group); | 126 | sysfs_remove_group(&pdev->dev.kobj, &twl4030_madc_group); |
diff --git a/drivers/hwmon/ultra45_env.c b/drivers/hwmon/ultra45_env.c index 44136bb6d045..fb3e69341c1b 100644 --- a/drivers/hwmon/ultra45_env.c +++ b/drivers/hwmon/ultra45_env.c | |||
@@ -250,7 +250,7 @@ static const struct attribute_group env_group = { | |||
250 | .attrs = env_attributes, | 250 | .attrs = env_attributes, |
251 | }; | 251 | }; |
252 | 252 | ||
253 | static int __devinit env_probe(struct platform_device *op) | 253 | static int env_probe(struct platform_device *op) |
254 | { | 254 | { |
255 | struct env *p = kzalloc(sizeof(*p), GFP_KERNEL); | 255 | struct env *p = kzalloc(sizeof(*p), GFP_KERNEL); |
256 | int err = -ENOMEM; | 256 | int err = -ENOMEM; |
@@ -291,7 +291,7 @@ out_free: | |||
291 | goto out; | 291 | goto out; |
292 | } | 292 | } |
293 | 293 | ||
294 | static int __devexit env_remove(struct platform_device *op) | 294 | static int env_remove(struct platform_device *op) |
295 | { | 295 | { |
296 | struct env *p = platform_get_drvdata(op); | 296 | struct env *p = platform_get_drvdata(op); |
297 | 297 | ||
@@ -321,7 +321,7 @@ static struct platform_driver env_driver = { | |||
321 | .of_match_table = env_match, | 321 | .of_match_table = env_match, |
322 | }, | 322 | }, |
323 | .probe = env_probe, | 323 | .probe = env_probe, |
324 | .remove = __devexit_p(env_remove), | 324 | .remove = env_remove, |
325 | }; | 325 | }; |
326 | 326 | ||
327 | module_platform_driver(env_driver); | 327 | module_platform_driver(env_driver); |
diff --git a/drivers/hwmon/via-cputemp.c b/drivers/hwmon/via-cputemp.c index 4cddee04f2e6..76f157b568ed 100644 --- a/drivers/hwmon/via-cputemp.c +++ b/drivers/hwmon/via-cputemp.c | |||
@@ -121,7 +121,7 @@ static const struct attribute_group via_cputemp_group = { | |||
121 | /* Optional attributes */ | 121 | /* Optional attributes */ |
122 | static DEVICE_ATTR(cpu0_vid, S_IRUGO, show_cpu_vid, NULL); | 122 | static DEVICE_ATTR(cpu0_vid, S_IRUGO, show_cpu_vid, NULL); |
123 | 123 | ||
124 | static int __devinit via_cputemp_probe(struct platform_device *pdev) | 124 | static int via_cputemp_probe(struct platform_device *pdev) |
125 | { | 125 | { |
126 | struct via_cputemp_data *data; | 126 | struct via_cputemp_data *data; |
127 | struct cpuinfo_x86 *c = &cpu_data(pdev->id); | 127 | struct cpuinfo_x86 *c = &cpu_data(pdev->id); |
@@ -192,7 +192,7 @@ exit_remove: | |||
192 | return err; | 192 | return err; |
193 | } | 193 | } |
194 | 194 | ||
195 | static int __devexit via_cputemp_remove(struct platform_device *pdev) | 195 | static int via_cputemp_remove(struct platform_device *pdev) |
196 | { | 196 | { |
197 | struct via_cputemp_data *data = platform_get_drvdata(pdev); | 197 | struct via_cputemp_data *data = platform_get_drvdata(pdev); |
198 | 198 | ||
@@ -209,7 +209,7 @@ static struct platform_driver via_cputemp_driver = { | |||
209 | .name = DRVNAME, | 209 | .name = DRVNAME, |
210 | }, | 210 | }, |
211 | .probe = via_cputemp_probe, | 211 | .probe = via_cputemp_probe, |
212 | .remove = __devexit_p(via_cputemp_remove), | 212 | .remove = via_cputemp_remove, |
213 | }; | 213 | }; |
214 | 214 | ||
215 | struct pdev_entry { | 215 | struct pdev_entry { |
diff --git a/drivers/hwmon/via686a.c b/drivers/hwmon/via686a.c index 299399aa30fe..e0e14a9f1658 100644 --- a/drivers/hwmon/via686a.c +++ b/drivers/hwmon/via686a.c | |||
@@ -339,7 +339,7 @@ struct via686a_data { | |||
339 | static struct pci_dev *s_bridge; /* pointer to the (only) via686a */ | 339 | static struct pci_dev *s_bridge; /* pointer to the (only) via686a */ |
340 | 340 | ||
341 | static int via686a_probe(struct platform_device *pdev); | 341 | static int via686a_probe(struct platform_device *pdev); |
342 | static int __devexit via686a_remove(struct platform_device *pdev); | 342 | static int via686a_remove(struct platform_device *pdev); |
343 | 343 | ||
344 | static inline int via686a_read_value(struct via686a_data *data, u8 reg) | 344 | static inline int via686a_read_value(struct via686a_data *data, u8 reg) |
345 | { | 345 | { |
@@ -677,12 +677,12 @@ static struct platform_driver via686a_driver = { | |||
677 | .name = "via686a", | 677 | .name = "via686a", |
678 | }, | 678 | }, |
679 | .probe = via686a_probe, | 679 | .probe = via686a_probe, |
680 | .remove = __devexit_p(via686a_remove), | 680 | .remove = via686a_remove, |
681 | }; | 681 | }; |
682 | 682 | ||
683 | 683 | ||
684 | /* This is called when the module is loaded */ | 684 | /* This is called when the module is loaded */ |
685 | static int __devinit via686a_probe(struct platform_device *pdev) | 685 | static int via686a_probe(struct platform_device *pdev) |
686 | { | 686 | { |
687 | struct via686a_data *data; | 687 | struct via686a_data *data; |
688 | struct resource *res; | 688 | struct resource *res; |
@@ -728,7 +728,7 @@ exit_remove_files: | |||
728 | return err; | 728 | return err; |
729 | } | 729 | } |
730 | 730 | ||
731 | static int __devexit via686a_remove(struct platform_device *pdev) | 731 | static int via686a_remove(struct platform_device *pdev) |
732 | { | 732 | { |
733 | struct via686a_data *data = platform_get_drvdata(pdev); | 733 | struct via686a_data *data = platform_get_drvdata(pdev); |
734 | 734 | ||
@@ -745,7 +745,7 @@ static void via686a_update_fan_div(struct via686a_data *data) | |||
745 | data->fan_div[1] = reg >> 6; | 745 | data->fan_div[1] = reg >> 6; |
746 | } | 746 | } |
747 | 747 | ||
748 | static void __devinit via686a_init_device(struct via686a_data *data) | 748 | static void via686a_init_device(struct via686a_data *data) |
749 | { | 749 | { |
750 | u8 reg; | 750 | u8 reg; |
751 | 751 | ||
@@ -833,7 +833,7 @@ static DEFINE_PCI_DEVICE_TABLE(via686a_pci_ids) = { | |||
833 | }; | 833 | }; |
834 | MODULE_DEVICE_TABLE(pci, via686a_pci_ids); | 834 | MODULE_DEVICE_TABLE(pci, via686a_pci_ids); |
835 | 835 | ||
836 | static int __devinit via686a_device_add(unsigned short address) | 836 | static int via686a_device_add(unsigned short address) |
837 | { | 837 | { |
838 | struct resource res = { | 838 | struct resource res = { |
839 | .start = address, | 839 | .start = address, |
@@ -874,7 +874,7 @@ exit: | |||
874 | return err; | 874 | return err; |
875 | } | 875 | } |
876 | 876 | ||
877 | static int __devinit via686a_pci_probe(struct pci_dev *dev, | 877 | static int via686a_pci_probe(struct pci_dev *dev, |
878 | const struct pci_device_id *id) | 878 | const struct pci_device_id *id) |
879 | { | 879 | { |
880 | u16 address, val; | 880 | u16 address, val; |
diff --git a/drivers/hwmon/vt1211.c b/drivers/hwmon/vt1211.c index f2c61153dba9..751703059fae 100644 --- a/drivers/hwmon/vt1211.c +++ b/drivers/hwmon/vt1211.c | |||
@@ -1086,7 +1086,7 @@ static struct device_attribute vt1211_sysfs_misc[] = { | |||
1086 | * Device registration and initialization | 1086 | * Device registration and initialization |
1087 | * --------------------------------------------------------------------- */ | 1087 | * --------------------------------------------------------------------- */ |
1088 | 1088 | ||
1089 | static void __devinit vt1211_init_device(struct vt1211_data *data) | 1089 | static void vt1211_init_device(struct vt1211_data *data) |
1090 | { | 1090 | { |
1091 | /* set VRM */ | 1091 | /* set VRM */ |
1092 | data->vrm = vid_which_vrm(); | 1092 | data->vrm = vid_which_vrm(); |
@@ -1141,7 +1141,7 @@ static void vt1211_remove_sysfs(struct platform_device *pdev) | |||
1141 | device_remove_file(dev, &vt1211_sysfs_misc[i]); | 1141 | device_remove_file(dev, &vt1211_sysfs_misc[i]); |
1142 | } | 1142 | } |
1143 | 1143 | ||
1144 | static int __devinit vt1211_probe(struct platform_device *pdev) | 1144 | static int vt1211_probe(struct platform_device *pdev) |
1145 | { | 1145 | { |
1146 | struct device *dev = &pdev->dev; | 1146 | struct device *dev = &pdev->dev; |
1147 | struct vt1211_data *data; | 1147 | struct vt1211_data *data; |
@@ -1217,7 +1217,7 @@ EXIT_DEV_REMOVE_SILENT: | |||
1217 | return err; | 1217 | return err; |
1218 | } | 1218 | } |
1219 | 1219 | ||
1220 | static int __devexit vt1211_remove(struct platform_device *pdev) | 1220 | static int vt1211_remove(struct platform_device *pdev) |
1221 | { | 1221 | { |
1222 | struct vt1211_data *data = platform_get_drvdata(pdev); | 1222 | struct vt1211_data *data = platform_get_drvdata(pdev); |
1223 | 1223 | ||
@@ -1233,7 +1233,7 @@ static struct platform_driver vt1211_driver = { | |||
1233 | .name = DRVNAME, | 1233 | .name = DRVNAME, |
1234 | }, | 1234 | }, |
1235 | .probe = vt1211_probe, | 1235 | .probe = vt1211_probe, |
1236 | .remove = __devexit_p(vt1211_remove), | 1236 | .remove = vt1211_remove, |
1237 | }; | 1237 | }; |
1238 | 1238 | ||
1239 | static int __init vt1211_device_add(unsigned short address) | 1239 | static int __init vt1211_device_add(unsigned short address) |
diff --git a/drivers/hwmon/vt8231.c b/drivers/hwmon/vt8231.c index 84e3dc5e3a83..a56355cef184 100644 --- a/drivers/hwmon/vt8231.c +++ b/drivers/hwmon/vt8231.c | |||
@@ -176,7 +176,7 @@ struct vt8231_data { | |||
176 | 176 | ||
177 | static struct pci_dev *s_bridge; | 177 | static struct pci_dev *s_bridge; |
178 | static int vt8231_probe(struct platform_device *pdev); | 178 | static int vt8231_probe(struct platform_device *pdev); |
179 | static int __devexit vt8231_remove(struct platform_device *pdev); | 179 | static int vt8231_remove(struct platform_device *pdev); |
180 | static struct vt8231_data *vt8231_update_device(struct device *dev); | 180 | static struct vt8231_data *vt8231_update_device(struct device *dev); |
181 | static void vt8231_init_device(struct vt8231_data *data); | 181 | static void vt8231_init_device(struct vt8231_data *data); |
182 | 182 | ||
@@ -762,7 +762,7 @@ static struct platform_driver vt8231_driver = { | |||
762 | .name = "vt8231", | 762 | .name = "vt8231", |
763 | }, | 763 | }, |
764 | .probe = vt8231_probe, | 764 | .probe = vt8231_probe, |
765 | .remove = __devexit_p(vt8231_remove), | 765 | .remove = vt8231_remove, |
766 | }; | 766 | }; |
767 | 767 | ||
768 | static DEFINE_PCI_DEVICE_TABLE(vt8231_pci_ids) = { | 768 | static DEFINE_PCI_DEVICE_TABLE(vt8231_pci_ids) = { |
@@ -772,7 +772,7 @@ static DEFINE_PCI_DEVICE_TABLE(vt8231_pci_ids) = { | |||
772 | 772 | ||
773 | MODULE_DEVICE_TABLE(pci, vt8231_pci_ids); | 773 | MODULE_DEVICE_TABLE(pci, vt8231_pci_ids); |
774 | 774 | ||
775 | static int __devinit vt8231_pci_probe(struct pci_dev *dev, | 775 | static int vt8231_pci_probe(struct pci_dev *dev, |
776 | const struct pci_device_id *id); | 776 | const struct pci_device_id *id); |
777 | 777 | ||
778 | static struct pci_driver vt8231_pci_driver = { | 778 | static struct pci_driver vt8231_pci_driver = { |
@@ -851,7 +851,7 @@ exit_remove_files: | |||
851 | return err; | 851 | return err; |
852 | } | 852 | } |
853 | 853 | ||
854 | static int __devexit vt8231_remove(struct platform_device *pdev) | 854 | static int vt8231_remove(struct platform_device *pdev) |
855 | { | 855 | { |
856 | struct vt8231_data *data = platform_get_drvdata(pdev); | 856 | struct vt8231_data *data = platform_get_drvdata(pdev); |
857 | int i; | 857 | int i; |
@@ -943,7 +943,7 @@ static struct vt8231_data *vt8231_update_device(struct device *dev) | |||
943 | return data; | 943 | return data; |
944 | } | 944 | } |
945 | 945 | ||
946 | static int __devinit vt8231_device_add(unsigned short address) | 946 | static int vt8231_device_add(unsigned short address) |
947 | { | 947 | { |
948 | struct resource res = { | 948 | struct resource res = { |
949 | .start = address, | 949 | .start = address, |
@@ -984,7 +984,7 @@ exit: | |||
984 | return err; | 984 | return err; |
985 | } | 985 | } |
986 | 986 | ||
987 | static int __devinit vt8231_pci_probe(struct pci_dev *dev, | 987 | static int vt8231_pci_probe(struct pci_dev *dev, |
988 | const struct pci_device_id *id) | 988 | const struct pci_device_id *id) |
989 | { | 989 | { |
990 | u16 address, val; | 990 | u16 address, val; |
diff --git a/drivers/hwmon/w83627ehf.c b/drivers/hwmon/w83627ehf.c index de3c7e04c3b5..55ac41c05561 100644 --- a/drivers/hwmon/w83627ehf.c +++ b/drivers/hwmon/w83627ehf.c | |||
@@ -1866,7 +1866,7 @@ static void w83627ehf_device_remove_files(struct device *dev) | |||
1866 | } | 1866 | } |
1867 | 1867 | ||
1868 | /* Get the monitoring functions started */ | 1868 | /* Get the monitoring functions started */ |
1869 | static inline void __devinit w83627ehf_init_device(struct w83627ehf_data *data, | 1869 | static inline void w83627ehf_init_device(struct w83627ehf_data *data, |
1870 | enum kinds kind) | 1870 | enum kinds kind) |
1871 | { | 1871 | { |
1872 | int i; | 1872 | int i; |
@@ -1952,7 +1952,7 @@ static void w82627ehf_swap_tempreg(struct w83627ehf_data *data, | |||
1952 | data->reg_temp_config[r2] = tmp; | 1952 | data->reg_temp_config[r2] = tmp; |
1953 | } | 1953 | } |
1954 | 1954 | ||
1955 | static void __devinit | 1955 | static void |
1956 | w83627ehf_set_temp_reg_ehf(struct w83627ehf_data *data, int n_temp) | 1956 | w83627ehf_set_temp_reg_ehf(struct w83627ehf_data *data, int n_temp) |
1957 | { | 1957 | { |
1958 | int i; | 1958 | int i; |
@@ -1965,7 +1965,7 @@ w83627ehf_set_temp_reg_ehf(struct w83627ehf_data *data, int n_temp) | |||
1965 | } | 1965 | } |
1966 | } | 1966 | } |
1967 | 1967 | ||
1968 | static void __devinit | 1968 | static void |
1969 | w83627ehf_check_fan_inputs(const struct w83627ehf_sio_data *sio_data, | 1969 | w83627ehf_check_fan_inputs(const struct w83627ehf_sio_data *sio_data, |
1970 | struct w83627ehf_data *data) | 1970 | struct w83627ehf_data *data) |
1971 | { | 1971 | { |
@@ -2054,7 +2054,7 @@ w83627ehf_check_fan_inputs(const struct w83627ehf_sio_data *sio_data, | |||
2054 | } | 2054 | } |
2055 | } | 2055 | } |
2056 | 2056 | ||
2057 | static int __devinit w83627ehf_probe(struct platform_device *pdev) | 2057 | static int w83627ehf_probe(struct platform_device *pdev) |
2058 | { | 2058 | { |
2059 | struct device *dev = &pdev->dev; | 2059 | struct device *dev = &pdev->dev; |
2060 | struct w83627ehf_sio_data *sio_data = dev->platform_data; | 2060 | struct w83627ehf_sio_data *sio_data = dev->platform_data; |
@@ -2596,7 +2596,7 @@ exit: | |||
2596 | return err; | 2596 | return err; |
2597 | } | 2597 | } |
2598 | 2598 | ||
2599 | static int __devexit w83627ehf_remove(struct platform_device *pdev) | 2599 | static int w83627ehf_remove(struct platform_device *pdev) |
2600 | { | 2600 | { |
2601 | struct w83627ehf_data *data = platform_get_drvdata(pdev); | 2601 | struct w83627ehf_data *data = platform_get_drvdata(pdev); |
2602 | 2602 | ||
@@ -2614,7 +2614,7 @@ static struct platform_driver w83627ehf_driver = { | |||
2614 | .name = DRVNAME, | 2614 | .name = DRVNAME, |
2615 | }, | 2615 | }, |
2616 | .probe = w83627ehf_probe, | 2616 | .probe = w83627ehf_probe, |
2617 | .remove = __devexit_p(w83627ehf_remove), | 2617 | .remove = w83627ehf_remove, |
2618 | }; | 2618 | }; |
2619 | 2619 | ||
2620 | /* w83627ehf_find() looks for a '627 in the Super-I/O config space */ | 2620 | /* w83627ehf_find() looks for a '627 in the Super-I/O config space */ |
diff --git a/drivers/hwmon/w83627hf.c b/drivers/hwmon/w83627hf.c index af1589908709..7f68b8309d10 100644 --- a/drivers/hwmon/w83627hf.c +++ b/drivers/hwmon/w83627hf.c | |||
@@ -393,7 +393,7 @@ struct w83627hf_data { | |||
393 | 393 | ||
394 | 394 | ||
395 | static int w83627hf_probe(struct platform_device *pdev); | 395 | static int w83627hf_probe(struct platform_device *pdev); |
396 | static int __devexit w83627hf_remove(struct platform_device *pdev); | 396 | static int w83627hf_remove(struct platform_device *pdev); |
397 | 397 | ||
398 | static int w83627hf_read_value(struct w83627hf_data *data, u16 reg); | 398 | static int w83627hf_read_value(struct w83627hf_data *data, u16 reg); |
399 | static int w83627hf_write_value(struct w83627hf_data *data, u16 reg, u16 value); | 399 | static int w83627hf_write_value(struct w83627hf_data *data, u16 reg, u16 value); |
@@ -407,7 +407,7 @@ static struct platform_driver w83627hf_driver = { | |||
407 | .name = DRVNAME, | 407 | .name = DRVNAME, |
408 | }, | 408 | }, |
409 | .probe = w83627hf_probe, | 409 | .probe = w83627hf_probe, |
410 | .remove = __devexit_p(w83627hf_remove), | 410 | .remove = w83627hf_remove, |
411 | }; | 411 | }; |
412 | 412 | ||
413 | static ssize_t | 413 | static ssize_t |
@@ -1342,7 +1342,7 @@ static const struct attribute_group w83627hf_group_opt = { | |||
1342 | .attrs = w83627hf_attributes_opt, | 1342 | .attrs = w83627hf_attributes_opt, |
1343 | }; | 1343 | }; |
1344 | 1344 | ||
1345 | static int __devinit w83627hf_probe(struct platform_device *pdev) | 1345 | static int w83627hf_probe(struct platform_device *pdev) |
1346 | { | 1346 | { |
1347 | struct device *dev = &pdev->dev; | 1347 | struct device *dev = &pdev->dev; |
1348 | struct w83627hf_sio_data *sio_data = dev->platform_data; | 1348 | struct w83627hf_sio_data *sio_data = dev->platform_data; |
@@ -1508,7 +1508,7 @@ static int __devinit w83627hf_probe(struct platform_device *pdev) | |||
1508 | return err; | 1508 | return err; |
1509 | } | 1509 | } |
1510 | 1510 | ||
1511 | static int __devexit w83627hf_remove(struct platform_device *pdev) | 1511 | static int w83627hf_remove(struct platform_device *pdev) |
1512 | { | 1512 | { |
1513 | struct w83627hf_data *data = platform_get_drvdata(pdev); | 1513 | struct w83627hf_data *data = platform_get_drvdata(pdev); |
1514 | 1514 | ||
@@ -1564,7 +1564,7 @@ static int w83627hf_read_value(struct w83627hf_data *data, u16 reg) | |||
1564 | return res; | 1564 | return res; |
1565 | } | 1565 | } |
1566 | 1566 | ||
1567 | static int __devinit w83627thf_read_gpio5(struct platform_device *pdev) | 1567 | static int w83627thf_read_gpio5(struct platform_device *pdev) |
1568 | { | 1568 | { |
1569 | struct w83627hf_sio_data *sio_data = pdev->dev.platform_data; | 1569 | struct w83627hf_sio_data *sio_data = pdev->dev.platform_data; |
1570 | int res = 0xff, sel; | 1570 | int res = 0xff, sel; |
@@ -1597,7 +1597,7 @@ exit: | |||
1597 | return res; | 1597 | return res; |
1598 | } | 1598 | } |
1599 | 1599 | ||
1600 | static int __devinit w83687thf_read_vid(struct platform_device *pdev) | 1600 | static int w83687thf_read_vid(struct platform_device *pdev) |
1601 | { | 1601 | { |
1602 | struct w83627hf_sio_data *sio_data = pdev->dev.platform_data; | 1602 | struct w83627hf_sio_data *sio_data = pdev->dev.platform_data; |
1603 | int res = 0xff; | 1603 | int res = 0xff; |
@@ -1649,7 +1649,7 @@ static int w83627hf_write_value(struct w83627hf_data *data, u16 reg, u16 value) | |||
1649 | return 0; | 1649 | return 0; |
1650 | } | 1650 | } |
1651 | 1651 | ||
1652 | static void __devinit w83627hf_init_device(struct platform_device *pdev) | 1652 | static void w83627hf_init_device(struct platform_device *pdev) |
1653 | { | 1653 | { |
1654 | struct w83627hf_data *data = platform_get_drvdata(pdev); | 1654 | struct w83627hf_data *data = platform_get_drvdata(pdev); |
1655 | int i; | 1655 | int i; |
diff --git a/drivers/hwmon/w83781d.c b/drivers/hwmon/w83781d.c index 20f11d31da40..93bd28639595 100644 --- a/drivers/hwmon/w83781d.c +++ b/drivers/hwmon/w83781d.c | |||
@@ -1764,7 +1764,7 @@ w83781d_write_value(struct w83781d_data *data, u16 reg, u16 value) | |||
1764 | return 0; | 1764 | return 0; |
1765 | } | 1765 | } |
1766 | 1766 | ||
1767 | static int __devinit | 1767 | static int |
1768 | w83781d_isa_probe(struct platform_device *pdev) | 1768 | w83781d_isa_probe(struct platform_device *pdev) |
1769 | { | 1769 | { |
1770 | int err, reg; | 1770 | int err, reg; |
@@ -1824,7 +1824,7 @@ w83781d_isa_probe(struct platform_device *pdev) | |||
1824 | return err; | 1824 | return err; |
1825 | } | 1825 | } |
1826 | 1826 | ||
1827 | static int __devexit | 1827 | static int |
1828 | w83781d_isa_remove(struct platform_device *pdev) | 1828 | w83781d_isa_remove(struct platform_device *pdev) |
1829 | { | 1829 | { |
1830 | struct w83781d_data *data = platform_get_drvdata(pdev); | 1830 | struct w83781d_data *data = platform_get_drvdata(pdev); |
@@ -1842,7 +1842,7 @@ static struct platform_driver w83781d_isa_driver = { | |||
1842 | .name = "w83781d", | 1842 | .name = "w83781d", |
1843 | }, | 1843 | }, |
1844 | .probe = w83781d_isa_probe, | 1844 | .probe = w83781d_isa_probe, |
1845 | .remove = __devexit_p(w83781d_isa_remove), | 1845 | .remove = w83781d_isa_remove, |
1846 | }; | 1846 | }; |
1847 | 1847 | ||
1848 | /* return 1 if a supported chip is found, 0 otherwise */ | 1848 | /* return 1 if a supported chip is found, 0 otherwise */ |
diff --git a/drivers/hwmon/wm831x-hwmon.c b/drivers/hwmon/wm831x-hwmon.c index d0db1f2738fb..df6ceaf8d58a 100644 --- a/drivers/hwmon/wm831x-hwmon.c +++ b/drivers/hwmon/wm831x-hwmon.c | |||
@@ -157,7 +157,7 @@ static const struct attribute_group wm831x_attr_group = { | |||
157 | .attrs = wm831x_attributes, | 157 | .attrs = wm831x_attributes, |
158 | }; | 158 | }; |
159 | 159 | ||
160 | static int __devinit wm831x_hwmon_probe(struct platform_device *pdev) | 160 | static int wm831x_hwmon_probe(struct platform_device *pdev) |
161 | { | 161 | { |
162 | struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); | 162 | struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); |
163 | struct wm831x_hwmon *hwmon; | 163 | struct wm831x_hwmon *hwmon; |
@@ -189,7 +189,7 @@ err_sysfs: | |||
189 | return ret; | 189 | return ret; |
190 | } | 190 | } |
191 | 191 | ||
192 | static int __devexit wm831x_hwmon_remove(struct platform_device *pdev) | 192 | static int wm831x_hwmon_remove(struct platform_device *pdev) |
193 | { | 193 | { |
194 | struct wm831x_hwmon *hwmon = platform_get_drvdata(pdev); | 194 | struct wm831x_hwmon *hwmon = platform_get_drvdata(pdev); |
195 | 195 | ||
@@ -201,7 +201,7 @@ static int __devexit wm831x_hwmon_remove(struct platform_device *pdev) | |||
201 | 201 | ||
202 | static struct platform_driver wm831x_hwmon_driver = { | 202 | static struct platform_driver wm831x_hwmon_driver = { |
203 | .probe = wm831x_hwmon_probe, | 203 | .probe = wm831x_hwmon_probe, |
204 | .remove = __devexit_p(wm831x_hwmon_remove), | 204 | .remove = wm831x_hwmon_remove, |
205 | .driver = { | 205 | .driver = { |
206 | .name = "wm831x-hwmon", | 206 | .name = "wm831x-hwmon", |
207 | .owner = THIS_MODULE, | 207 | .owner = THIS_MODULE, |
diff --git a/drivers/hwmon/wm8350-hwmon.c b/drivers/hwmon/wm8350-hwmon.c index b955756bdb42..64bf75c9442b 100644 --- a/drivers/hwmon/wm8350-hwmon.c +++ b/drivers/hwmon/wm8350-hwmon.c | |||
@@ -91,7 +91,7 @@ static const struct attribute_group wm8350_attr_group = { | |||
91 | .attrs = wm8350_attributes, | 91 | .attrs = wm8350_attributes, |
92 | }; | 92 | }; |
93 | 93 | ||
94 | static int __devinit wm8350_hwmon_probe(struct platform_device *pdev) | 94 | static int wm8350_hwmon_probe(struct platform_device *pdev) |
95 | { | 95 | { |
96 | struct wm8350 *wm8350 = platform_get_drvdata(pdev); | 96 | struct wm8350 *wm8350 = platform_get_drvdata(pdev); |
97 | int ret; | 97 | int ret; |
@@ -114,7 +114,7 @@ err: | |||
114 | return ret; | 114 | return ret; |
115 | } | 115 | } |
116 | 116 | ||
117 | static int __devexit wm8350_hwmon_remove(struct platform_device *pdev) | 117 | static int wm8350_hwmon_remove(struct platform_device *pdev) |
118 | { | 118 | { |
119 | struct wm8350 *wm8350 = platform_get_drvdata(pdev); | 119 | struct wm8350 *wm8350 = platform_get_drvdata(pdev); |
120 | 120 | ||
@@ -126,7 +126,7 @@ static int __devexit wm8350_hwmon_remove(struct platform_device *pdev) | |||
126 | 126 | ||
127 | static struct platform_driver wm8350_hwmon_driver = { | 127 | static struct platform_driver wm8350_hwmon_driver = { |
128 | .probe = wm8350_hwmon_probe, | 128 | .probe = wm8350_hwmon_probe, |
129 | .remove = __devexit_p(wm8350_hwmon_remove), | 129 | .remove = wm8350_hwmon_remove, |
130 | .driver = { | 130 | .driver = { |
131 | .name = "wm8350-hwmon", | 131 | .name = "wm8350-hwmon", |
132 | .owner = THIS_MODULE, | 132 | .owner = THIS_MODULE, |