diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2012-11-19 13:22:35 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-28 14:49:40 -0500 |
commit | 6c931ae1c09a9618852c9619dac71f1f77776e3b (patch) | |
tree | 2bf3ef58b8c122aa9714576f6b07b71948d9d1c7 /drivers | |
parent | 9e5e9b7a92e4e2e4ac1f0d6aa181639637660e45 (diff) |
hwmon: remove use of __devinit
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Jean Delvare <khali@linux-fr.org>
Cc: Alistair John Strachan <alistair@devzero.co.uk>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Juerg Haefliger <juergh@gmail.com>
Cc: Andreas Herrmann <herrmann.der.user@googlemail.com>
Cc: Clemens Ladisch <clemens@ladisch.de>
Cc: Rudolf Marek <r.marek@assembler.cz>
Cc: Jim Cromie <jim.cromie@gmail.com>
Cc: "Mark M. Hoffman" <mhoffman@lightlink.com>
Cc: Roger Lucas <vt8231@hiddenengine.co.uk>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
45 files changed, 82 insertions, 82 deletions
diff --git a/drivers/hwmon/abituguru.c b/drivers/hwmon/abituguru.c index d12c3fb25fad..700d5e0442ea 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; |
diff --git a/drivers/hwmon/abituguru3.c b/drivers/hwmon/abituguru3.c index 56a807554889..b8d0942a9872 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 }; |
diff --git a/drivers/hwmon/ad7314.c b/drivers/hwmon/ad7314.c index fdda321c6066..defd34b04629 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; |
diff --git a/drivers/hwmon/adcxx.c b/drivers/hwmon/adcxx.c index dff6f4f0dd71..ecc1e6c5fa9f 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; |
diff --git a/drivers/hwmon/ads7871.c b/drivers/hwmon/ads7871.c index 5a6cc1f91ba7..41a7837585fc 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; |
diff --git a/drivers/hwmon/adt7411.c b/drivers/hwmon/adt7411.c index a961af614770..68a5da715662 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; |
diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c index 5c0cdd385b1c..65a374631995 100644 --- a/drivers/hwmon/coretemp.c +++ b/drivers/hwmon/coretemp.c | |||
@@ -358,7 +358,7 @@ static int __cpuinit get_tjmax(struct cpuinfo_x86 *c, u32 id, | |||
358 | return adjust_tjmax(c, id, dev); | 358 | return adjust_tjmax(c, id, dev); |
359 | } | 359 | } |
360 | 360 | ||
361 | static int __devinit create_name_attr(struct platform_data *pdata, | 361 | static int create_name_attr(struct platform_data *pdata, |
362 | struct device *dev) | 362 | struct device *dev) |
363 | { | 363 | { |
364 | sysfs_attr_init(&pdata->name_attr.attr); | 364 | sysfs_attr_init(&pdata->name_attr.attr); |
@@ -553,7 +553,7 @@ static void coretemp_remove_core(struct platform_data *pdata, | |||
553 | pdata->core_data[indx] = NULL; | 553 | pdata->core_data[indx] = NULL; |
554 | } | 554 | } |
555 | 555 | ||
556 | static int __devinit coretemp_probe(struct platform_device *pdev) | 556 | static int coretemp_probe(struct platform_device *pdev) |
557 | { | 557 | { |
558 | struct platform_data *pdata; | 558 | struct platform_data *pdata; |
559 | int err; | 559 | int err; |
diff --git a/drivers/hwmon/da9052-hwmon.c b/drivers/hwmon/da9052-hwmon.c index ff28a2daa730..d3206e341de2 100644 --- a/drivers/hwmon/da9052-hwmon.c +++ b/drivers/hwmon/da9052-hwmon.c | |||
@@ -283,7 +283,7 @@ static struct attribute *da9052_attr[] = { | |||
283 | 283 | ||
284 | static const struct attribute_group da9052_attr_group = {.attrs = da9052_attr}; | 284 | static const struct attribute_group da9052_attr_group = {.attrs = da9052_attr}; |
285 | 285 | ||
286 | static int __devinit da9052_hwmon_probe(struct platform_device *pdev) | 286 | static int da9052_hwmon_probe(struct platform_device *pdev) |
287 | { | 287 | { |
288 | struct da9052_hwmon *hwmon; | 288 | struct da9052_hwmon *hwmon; |
289 | int ret; | 289 | int ret; |
diff --git a/drivers/hwmon/dme1737.c b/drivers/hwmon/dme1737.c index 32f81ca3c197..aa6a493731bf 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; |
diff --git a/drivers/hwmon/f71805f.c b/drivers/hwmon/f71805f.c index 56860dd23879..0c8426eea6a6 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; |
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 327fbc6106ef..4eca29850286 100644 --- a/drivers/hwmon/fam15h_power.c +++ b/drivers/hwmon/fam15h_power.c | |||
@@ -111,7 +111,7 @@ static const struct attribute_group fam15h_power_attr_group = { | |||
111 | .attrs = fam15h_power_attrs, | 111 | .attrs = fam15h_power_attrs, |
112 | }; | 112 | }; |
113 | 113 | ||
114 | static bool __devinit fam15h_power_is_internal_node0(struct pci_dev *f4) | 114 | static bool fam15h_power_is_internal_node0(struct pci_dev *f4) |
115 | { | 115 | { |
116 | u32 val; | 116 | u32 val; |
117 | 117 | ||
@@ -168,7 +168,7 @@ static int fam15h_power_resume(struct pci_dev *pdev) | |||
168 | #define fam15h_power_resume NULL | 168 | #define fam15h_power_resume NULL |
169 | #endif | 169 | #endif |
170 | 170 | ||
171 | static void __devinit fam15h_power_init_data(struct pci_dev *f4, | 171 | static void fam15h_power_init_data(struct pci_dev *f4, |
172 | struct fam15h_power_data *data) | 172 | struct fam15h_power_data *data) |
173 | { | 173 | { |
174 | u32 val; | 174 | u32 val; |
@@ -194,7 +194,7 @@ static void __devinit fam15h_power_init_data(struct pci_dev *f4, | |||
194 | data->processor_pwr_watts = (tmp * 15625) >> 10; | 194 | data->processor_pwr_watts = (tmp * 15625) >> 10; |
195 | } | 195 | } |
196 | 196 | ||
197 | static int __devinit fam15h_power_probe(struct pci_dev *pdev, | 197 | static int fam15h_power_probe(struct pci_dev *pdev, |
198 | const struct pci_device_id *id) | 198 | const struct pci_device_id *id) |
199 | { | 199 | { |
200 | struct fam15h_power_data *data; | 200 | struct fam15h_power_data *data; |
diff --git a/drivers/hwmon/gpio-fan.c b/drivers/hwmon/gpio-fan.c index 4b1767f95b03..e52856bdc7b6 100644 --- a/drivers/hwmon/gpio-fan.c +++ b/drivers/hwmon/gpio-fan.c | |||
@@ -505,7 +505,7 @@ static struct of_device_id of_gpio_fan_match[] __devinitdata = { | |||
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; |
diff --git a/drivers/hwmon/hih6130.c b/drivers/hwmon/hih6130.c index 9ebe24e9220c..5c65aef095ca 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; |
diff --git a/drivers/hwmon/i5k_amb.c b/drivers/hwmon/i5k_amb.c index 3fa3cc8dd061..0d0faf056ae3 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; |
@@ -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; |
diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c index 2cb0da1190c7..3a4da44f704f 100644 --- a/drivers/hwmon/it87.c +++ b/drivers/hwmon/it87.c | |||
@@ -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; |
@@ -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 fca0d3798ba6..b944d615944b 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; |
diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c index 2722cdecc79e..da8acda48ab0 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; |
diff --git a/drivers/hwmon/k8temp.c b/drivers/hwmon/k8temp.c index 143a2f8079a3..8c46753158df 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; |
diff --git a/drivers/hwmon/lm70.c b/drivers/hwmon/lm70.c index d3d5afd95a51..d5f006e67a51 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; |
diff --git a/drivers/hwmon/lm78.c b/drivers/hwmon/lm78.c index 1dc3433d2acd..181d756badc5 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; |
diff --git a/drivers/hwmon/max1111.c b/drivers/hwmon/max1111.c index 5ac15b07dc60..410351bcc3e3 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; |
diff --git a/drivers/hwmon/max197.c b/drivers/hwmon/max197.c index 170e1b28128b..76c941e0b95f 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; |
diff --git a/drivers/hwmon/ntc_thermistor.c b/drivers/hwmon/ntc_thermistor.c index dd232307780d..ac4f403bc618 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; |
diff --git a/drivers/hwmon/pc87360.c b/drivers/hwmon/pc87360.c index 07856630354b..b4c11c6ac677 100644 --- a/drivers/hwmon/pc87360.c +++ b/drivers/hwmon/pc87360.c | |||
@@ -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; |
diff --git a/drivers/hwmon/pc87427.c b/drivers/hwmon/pc87427.c index 288a775c6878..36a0d177caf3 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; |
diff --git a/drivers/hwmon/s3c-hwmon.c b/drivers/hwmon/s3c-hwmon.c index df405e3696a9..397e2ada61c2 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; |
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 32e3b29b1961..d5b79e7dbedc 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; |
diff --git a/drivers/hwmon/sht21.c b/drivers/hwmon/sht21.c index 3ffd3b3deb04..9a4cc3b5ae0c 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; |
diff --git a/drivers/hwmon/sis5595.c b/drivers/hwmon/sis5595.c index fb6b6ed6accd..5adc8299b264 100644 --- a/drivers/hwmon/sis5595.c +++ b/drivers/hwmon/sis5595.c | |||
@@ -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; |
@@ -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)) |
@@ -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 6edad30be3e3..9100a2748850 100644 --- a/drivers/hwmon/smsc47b397.c +++ b/drivers/hwmon/smsc47b397.c | |||
@@ -249,7 +249,7 @@ static struct platform_driver smsc47b397_driver = { | |||
249 | .remove = 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 ec11400dc980..bd8e4af6fd42 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; |
diff --git a/drivers/hwmon/twl4030-madc-hwmon.c b/drivers/hwmon/twl4030-madc-hwmon.c index 1a174f0a3cde..6b42f415c5cd 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; |
diff --git a/drivers/hwmon/ultra45_env.c b/drivers/hwmon/ultra45_env.c index 89747b8ac818..4a06fc016316 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; |
diff --git a/drivers/hwmon/via-cputemp.c b/drivers/hwmon/via-cputemp.c index 6021b7f3e364..b86ad796fa86 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); |
diff --git a/drivers/hwmon/via686a.c b/drivers/hwmon/via686a.c index b2c155d6939f..9d6e27e8c0f5 100644 --- a/drivers/hwmon/via686a.c +++ b/drivers/hwmon/via686a.c | |||
@@ -682,7 +682,7 @@ static struct platform_driver via686a_driver = { | |||
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; |
@@ -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 07ec260abb43..ae02edb50c32 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; |
diff --git a/drivers/hwmon/vt8231.c b/drivers/hwmon/vt8231.c index 28f95bdf0358..a86ef1b19209 100644 --- a/drivers/hwmon/vt8231.c +++ b/drivers/hwmon/vt8231.c | |||
@@ -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 = { |
@@ -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 c7e0794ce072..09e17ff6163c 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; |
diff --git a/drivers/hwmon/w83627hf.c b/drivers/hwmon/w83627hf.c index 3aff01505c86..e5a7e5294489 100644 --- a/drivers/hwmon/w83627hf.c +++ b/drivers/hwmon/w83627hf.c | |||
@@ -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; |
@@ -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 becd9d66c077..54674a51960f 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; |
diff --git a/drivers/hwmon/wm831x-hwmon.c b/drivers/hwmon/wm831x-hwmon.c index d77bdf4d1123..81e71663ba4e 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; |
diff --git a/drivers/hwmon/wm8350-hwmon.c b/drivers/hwmon/wm8350-hwmon.c index 9544485cc8dd..1fd641789d0f 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; |