diff options
Diffstat (limited to 'drivers/iio')
34 files changed, 180 insertions, 139 deletions
diff --git a/drivers/iio/accel/hid-sensor-accel-3d.c b/drivers/iio/accel/hid-sensor-accel-3d.c index 253684ebc572..dd8ea4284934 100644 --- a/drivers/iio/accel/hid-sensor-accel-3d.c +++ b/drivers/iio/accel/hid-sensor-accel-3d.c | |||
@@ -277,7 +277,7 @@ static int accel_3d_parse_report(struct platform_device *pdev, | |||
277 | } | 277 | } |
278 | 278 | ||
279 | /* Function to initialize the processing for usage id */ | 279 | /* Function to initialize the processing for usage id */ |
280 | static int __devinit hid_accel_3d_probe(struct platform_device *pdev) | 280 | static int hid_accel_3d_probe(struct platform_device *pdev) |
281 | { | 281 | { |
282 | int ret = 0; | 282 | int ret = 0; |
283 | static const char *name = "accel_3d"; | 283 | static const char *name = "accel_3d"; |
@@ -374,7 +374,7 @@ error_ret: | |||
374 | } | 374 | } |
375 | 375 | ||
376 | /* Function to deinitialize the processing for usage id */ | 376 | /* Function to deinitialize the processing for usage id */ |
377 | static int __devinit hid_accel_3d_remove(struct platform_device *pdev) | 377 | static int hid_accel_3d_remove(struct platform_device *pdev) |
378 | { | 378 | { |
379 | struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; | 379 | struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; |
380 | struct iio_dev *indio_dev = platform_get_drvdata(pdev); | 380 | struct iio_dev *indio_dev = platform_get_drvdata(pdev); |
diff --git a/drivers/iio/adc/ad7266.c b/drivers/iio/adc/ad7266.c index e36107dc30b9..bbad9b94cd75 100644 --- a/drivers/iio/adc/ad7266.c +++ b/drivers/iio/adc/ad7266.c | |||
@@ -367,7 +367,7 @@ static const struct ad7266_chan_info ad7266_chan_infos[] = { | |||
367 | }, | 367 | }, |
368 | }; | 368 | }; |
369 | 369 | ||
370 | static void __devinit ad7266_init_channels(struct iio_dev *indio_dev) | 370 | static void ad7266_init_channels(struct iio_dev *indio_dev) |
371 | { | 371 | { |
372 | struct ad7266_state *st = iio_priv(indio_dev); | 372 | struct ad7266_state *st = iio_priv(indio_dev); |
373 | bool is_differential, is_signed; | 373 | bool is_differential, is_signed; |
@@ -391,7 +391,7 @@ static const char * const ad7266_gpio_labels[] = { | |||
391 | "AD0", "AD1", "AD2", | 391 | "AD0", "AD1", "AD2", |
392 | }; | 392 | }; |
393 | 393 | ||
394 | static int __devinit ad7266_probe(struct spi_device *spi) | 394 | static int ad7266_probe(struct spi_device *spi) |
395 | { | 395 | { |
396 | struct ad7266_platform_data *pdata = spi->dev.platform_data; | 396 | struct ad7266_platform_data *pdata = spi->dev.platform_data; |
397 | struct iio_dev *indio_dev; | 397 | struct iio_dev *indio_dev; |
@@ -498,7 +498,7 @@ error_put_reg: | |||
498 | return ret; | 498 | return ret; |
499 | } | 499 | } |
500 | 500 | ||
501 | static int __devexit ad7266_remove(struct spi_device *spi) | 501 | static int ad7266_remove(struct spi_device *spi) |
502 | { | 502 | { |
503 | struct iio_dev *indio_dev = spi_get_drvdata(spi); | 503 | struct iio_dev *indio_dev = spi_get_drvdata(spi); |
504 | struct ad7266_state *st = iio_priv(indio_dev); | 504 | struct ad7266_state *st = iio_priv(indio_dev); |
@@ -529,7 +529,7 @@ static struct spi_driver ad7266_driver = { | |||
529 | .owner = THIS_MODULE, | 529 | .owner = THIS_MODULE, |
530 | }, | 530 | }, |
531 | .probe = ad7266_probe, | 531 | .probe = ad7266_probe, |
532 | .remove = __devexit_p(ad7266_remove), | 532 | .remove = ad7266_remove, |
533 | .id_table = ad7266_id, | 533 | .id_table = ad7266_id, |
534 | }; | 534 | }; |
535 | module_spi_driver(ad7266_driver); | 535 | module_spi_driver(ad7266_driver); |
diff --git a/drivers/iio/adc/ad7298.c b/drivers/iio/adc/ad7298.c index 2364807a5d6c..b34d754994d5 100644 --- a/drivers/iio/adc/ad7298.c +++ b/drivers/iio/adc/ad7298.c | |||
@@ -292,7 +292,7 @@ static const struct iio_info ad7298_info = { | |||
292 | .driver_module = THIS_MODULE, | 292 | .driver_module = THIS_MODULE, |
293 | }; | 293 | }; |
294 | 294 | ||
295 | static int __devinit ad7298_probe(struct spi_device *spi) | 295 | static int ad7298_probe(struct spi_device *spi) |
296 | { | 296 | { |
297 | struct ad7298_platform_data *pdata = spi->dev.platform_data; | 297 | struct ad7298_platform_data *pdata = spi->dev.platform_data; |
298 | struct ad7298_state *st; | 298 | struct ad7298_state *st; |
@@ -370,7 +370,7 @@ error_free: | |||
370 | return ret; | 370 | return ret; |
371 | } | 371 | } |
372 | 372 | ||
373 | static int __devexit ad7298_remove(struct spi_device *spi) | 373 | static int ad7298_remove(struct spi_device *spi) |
374 | { | 374 | { |
375 | struct iio_dev *indio_dev = spi_get_drvdata(spi); | 375 | struct iio_dev *indio_dev = spi_get_drvdata(spi); |
376 | struct ad7298_state *st = iio_priv(indio_dev); | 376 | struct ad7298_state *st = iio_priv(indio_dev); |
@@ -398,7 +398,7 @@ static struct spi_driver ad7298_driver = { | |||
398 | .owner = THIS_MODULE, | 398 | .owner = THIS_MODULE, |
399 | }, | 399 | }, |
400 | .probe = ad7298_probe, | 400 | .probe = ad7298_probe, |
401 | .remove = __devexit_p(ad7298_remove), | 401 | .remove = ad7298_remove, |
402 | .id_table = ad7298_id, | 402 | .id_table = ad7298_id, |
403 | }; | 403 | }; |
404 | module_spi_driver(ad7298_driver); | 404 | module_spi_driver(ad7298_driver); |
diff --git a/drivers/iio/adc/ad7476.c b/drivers/iio/adc/ad7476.c index 330248bfebae..1491fa6debb2 100644 --- a/drivers/iio/adc/ad7476.c +++ b/drivers/iio/adc/ad7476.c | |||
@@ -207,7 +207,7 @@ static const struct iio_info ad7476_info = { | |||
207 | .read_raw = &ad7476_read_raw, | 207 | .read_raw = &ad7476_read_raw, |
208 | }; | 208 | }; |
209 | 209 | ||
210 | static int __devinit ad7476_probe(struct spi_device *spi) | 210 | static int ad7476_probe(struct spi_device *spi) |
211 | { | 211 | { |
212 | struct ad7476_state *st; | 212 | struct ad7476_state *st; |
213 | struct iio_dev *indio_dev; | 213 | struct iio_dev *indio_dev; |
@@ -277,7 +277,7 @@ error_ret: | |||
277 | return ret; | 277 | return ret; |
278 | } | 278 | } |
279 | 279 | ||
280 | static int __devexit ad7476_remove(struct spi_device *spi) | 280 | static int ad7476_remove(struct spi_device *spi) |
281 | { | 281 | { |
282 | struct iio_dev *indio_dev = spi_get_drvdata(spi); | 282 | struct iio_dev *indio_dev = spi_get_drvdata(spi); |
283 | struct ad7476_state *st = iio_priv(indio_dev); | 283 | struct ad7476_state *st = iio_priv(indio_dev); |
@@ -322,7 +322,7 @@ static struct spi_driver ad7476_driver = { | |||
322 | .owner = THIS_MODULE, | 322 | .owner = THIS_MODULE, |
323 | }, | 323 | }, |
324 | .probe = ad7476_probe, | 324 | .probe = ad7476_probe, |
325 | .remove = __devexit_p(ad7476_remove), | 325 | .remove = ad7476_remove, |
326 | .id_table = ad7476_id, | 326 | .id_table = ad7476_id, |
327 | }; | 327 | }; |
328 | module_spi_driver(ad7476_driver); | 328 | module_spi_driver(ad7476_driver); |
diff --git a/drivers/iio/adc/ad7791.c b/drivers/iio/adc/ad7791.c index e93740843b2b..5e8d1da6887f 100644 --- a/drivers/iio/adc/ad7791.c +++ b/drivers/iio/adc/ad7791.c | |||
@@ -325,8 +325,8 @@ static const struct iio_info ad7791_no_filter_info = { | |||
325 | .driver_module = THIS_MODULE, | 325 | .driver_module = THIS_MODULE, |
326 | }; | 326 | }; |
327 | 327 | ||
328 | static int __devinit ad7791_setup(struct ad7791_state *st, | 328 | static int ad7791_setup(struct ad7791_state *st, |
329 | struct ad7791_platform_data *pdata) | 329 | struct ad7791_platform_data *pdata) |
330 | { | 330 | { |
331 | /* Set to poweron-reset default values */ | 331 | /* Set to poweron-reset default values */ |
332 | st->mode = AD7791_MODE_BUFFER; | 332 | st->mode = AD7791_MODE_BUFFER; |
@@ -349,7 +349,7 @@ static int __devinit ad7791_setup(struct ad7791_state *st, | |||
349 | st->mode); | 349 | st->mode); |
350 | } | 350 | } |
351 | 351 | ||
352 | static int __devinit ad7791_probe(struct spi_device *spi) | 352 | static int ad7791_probe(struct spi_device *spi) |
353 | { | 353 | { |
354 | struct ad7791_platform_data *pdata = spi->dev.platform_data; | 354 | struct ad7791_platform_data *pdata = spi->dev.platform_data; |
355 | struct iio_dev *indio_dev; | 355 | struct iio_dev *indio_dev; |
@@ -418,7 +418,7 @@ err_iio_free: | |||
418 | return ret; | 418 | return ret; |
419 | } | 419 | } |
420 | 420 | ||
421 | static int __devexit ad7791_remove(struct spi_device *spi) | 421 | static int ad7791_remove(struct spi_device *spi) |
422 | { | 422 | { |
423 | struct iio_dev *indio_dev = spi_get_drvdata(spi); | 423 | struct iio_dev *indio_dev = spi_get_drvdata(spi); |
424 | struct ad7791_state *st = iio_priv(indio_dev); | 424 | struct ad7791_state *st = iio_priv(indio_dev); |
@@ -450,7 +450,7 @@ static struct spi_driver ad7791_driver = { | |||
450 | .owner = THIS_MODULE, | 450 | .owner = THIS_MODULE, |
451 | }, | 451 | }, |
452 | .probe = ad7791_probe, | 452 | .probe = ad7791_probe, |
453 | .remove = __devexit_p(ad7791_remove), | 453 | .remove = ad7791_remove, |
454 | .id_table = ad7791_spi_ids, | 454 | .id_table = ad7791_spi_ids, |
455 | }; | 455 | }; |
456 | module_spi_driver(ad7791_driver); | 456 | module_spi_driver(ad7791_driver); |
diff --git a/drivers/iio/adc/ad7887.c b/drivers/iio/adc/ad7887.c index 81153fafac7a..a33d5cd1a536 100644 --- a/drivers/iio/adc/ad7887.c +++ b/drivers/iio/adc/ad7887.c | |||
@@ -233,7 +233,7 @@ static const struct iio_info ad7887_info = { | |||
233 | .driver_module = THIS_MODULE, | 233 | .driver_module = THIS_MODULE, |
234 | }; | 234 | }; |
235 | 235 | ||
236 | static int __devinit ad7887_probe(struct spi_device *spi) | 236 | static int ad7887_probe(struct spi_device *spi) |
237 | { | 237 | { |
238 | struct ad7887_platform_data *pdata = spi->dev.platform_data; | 238 | struct ad7887_platform_data *pdata = spi->dev.platform_data; |
239 | struct ad7887_state *st; | 239 | struct ad7887_state *st; |
@@ -340,7 +340,7 @@ error_free: | |||
340 | return ret; | 340 | return ret; |
341 | } | 341 | } |
342 | 342 | ||
343 | static int __devexit ad7887_remove(struct spi_device *spi) | 343 | static int ad7887_remove(struct spi_device *spi) |
344 | { | 344 | { |
345 | struct iio_dev *indio_dev = spi_get_drvdata(spi); | 345 | struct iio_dev *indio_dev = spi_get_drvdata(spi); |
346 | struct ad7887_state *st = iio_priv(indio_dev); | 346 | struct ad7887_state *st = iio_priv(indio_dev); |
@@ -368,7 +368,7 @@ static struct spi_driver ad7887_driver = { | |||
368 | .owner = THIS_MODULE, | 368 | .owner = THIS_MODULE, |
369 | }, | 369 | }, |
370 | .probe = ad7887_probe, | 370 | .probe = ad7887_probe, |
371 | .remove = __devexit_p(ad7887_remove), | 371 | .remove = ad7887_remove, |
372 | .id_table = ad7887_id, | 372 | .id_table = ad7887_id, |
373 | }; | 373 | }; |
374 | module_spi_driver(ad7887_driver); | 374 | module_spi_driver(ad7887_driver); |
diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c index 315bed1f401f..a526c0e3aaa8 100644 --- a/drivers/iio/adc/at91_adc.c +++ b/drivers/iio/adc/at91_adc.c | |||
@@ -514,7 +514,7 @@ static const struct iio_info at91_adc_info = { | |||
514 | .read_raw = &at91_adc_read_raw, | 514 | .read_raw = &at91_adc_read_raw, |
515 | }; | 515 | }; |
516 | 516 | ||
517 | static int __devinit at91_adc_probe(struct platform_device *pdev) | 517 | static int at91_adc_probe(struct platform_device *pdev) |
518 | { | 518 | { |
519 | unsigned int prsc, mstrclk, ticks, adc_clk; | 519 | unsigned int prsc, mstrclk, ticks, adc_clk; |
520 | int ret; | 520 | int ret; |
@@ -678,7 +678,7 @@ error_ret: | |||
678 | return ret; | 678 | return ret; |
679 | } | 679 | } |
680 | 680 | ||
681 | static int __devexit at91_adc_remove(struct platform_device *pdev) | 681 | static int at91_adc_remove(struct platform_device *pdev) |
682 | { | 682 | { |
683 | struct iio_dev *idev = platform_get_drvdata(pdev); | 683 | struct iio_dev *idev = platform_get_drvdata(pdev); |
684 | struct at91_adc_state *st = iio_priv(idev); | 684 | struct at91_adc_state *st = iio_priv(idev); |
@@ -702,7 +702,7 @@ MODULE_DEVICE_TABLE(of, at91_adc_dt_ids); | |||
702 | 702 | ||
703 | static struct platform_driver at91_adc_driver = { | 703 | static struct platform_driver at91_adc_driver = { |
704 | .probe = at91_adc_probe, | 704 | .probe = at91_adc_probe, |
705 | .remove = __devexit_p(at91_adc_remove), | 705 | .remove = at91_adc_remove, |
706 | .driver = { | 706 | .driver = { |
707 | .name = "at91_adc", | 707 | .name = "at91_adc", |
708 | .of_match_table = of_match_ptr(at91_adc_dt_ids), | 708 | .of_match_table = of_match_ptr(at91_adc_dt_ids), |
diff --git a/drivers/iio/adc/lp8788_adc.c b/drivers/iio/adc/lp8788_adc.c index f8ae81cae9cf..f8bcb1f5892d 100644 --- a/drivers/iio/adc/lp8788_adc.c +++ b/drivers/iio/adc/lp8788_adc.c | |||
@@ -193,7 +193,7 @@ static inline void lp8788_iio_map_unregister(struct iio_dev *indio_dev, | |||
193 | iio_map_array_unregister(indio_dev, adc->map); | 193 | iio_map_array_unregister(indio_dev, adc->map); |
194 | } | 194 | } |
195 | 195 | ||
196 | static int __devinit lp8788_adc_probe(struct platform_device *pdev) | 196 | static int lp8788_adc_probe(struct platform_device *pdev) |
197 | { | 197 | { |
198 | struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent); | 198 | struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent); |
199 | struct iio_dev *indio_dev; | 199 | struct iio_dev *indio_dev; |
@@ -236,7 +236,7 @@ err_iio_map: | |||
236 | return ret; | 236 | return ret; |
237 | } | 237 | } |
238 | 238 | ||
239 | static int __devexit lp8788_adc_remove(struct platform_device *pdev) | 239 | static int lp8788_adc_remove(struct platform_device *pdev) |
240 | { | 240 | { |
241 | struct iio_dev *indio_dev = platform_get_drvdata(pdev); | 241 | struct iio_dev *indio_dev = platform_get_drvdata(pdev); |
242 | struct lp8788_adc *adc = iio_priv(indio_dev); | 242 | struct lp8788_adc *adc = iio_priv(indio_dev); |
@@ -250,7 +250,7 @@ static int __devexit lp8788_adc_remove(struct platform_device *pdev) | |||
250 | 250 | ||
251 | static struct platform_driver lp8788_adc_driver = { | 251 | static struct platform_driver lp8788_adc_driver = { |
252 | .probe = lp8788_adc_probe, | 252 | .probe = lp8788_adc_probe, |
253 | .remove = __devexit_p(lp8788_adc_remove), | 253 | .remove = lp8788_adc_remove, |
254 | .driver = { | 254 | .driver = { |
255 | .name = LP8788_DEV_ADC, | 255 | .name = LP8788_DEV_ADC, |
256 | .owner = THIS_MODULE, | 256 | .owner = THIS_MODULE, |
diff --git a/drivers/iio/adc/max1363.c b/drivers/iio/adc/max1363.c index aac572290cbf..eba1034d8606 100644 --- a/drivers/iio/adc/max1363.c +++ b/drivers/iio/adc/max1363.c | |||
@@ -1403,7 +1403,7 @@ static int max1363_initial_setup(struct max1363_state *st) | |||
1403 | return max1363_set_scan_mode(st); | 1403 | return max1363_set_scan_mode(st); |
1404 | } | 1404 | } |
1405 | 1405 | ||
1406 | static int __devinit max1363_alloc_scan_masks(struct iio_dev *indio_dev) | 1406 | static int max1363_alloc_scan_masks(struct iio_dev *indio_dev) |
1407 | { | 1407 | { |
1408 | struct max1363_state *st = iio_priv(indio_dev); | 1408 | struct max1363_state *st = iio_priv(indio_dev); |
1409 | unsigned long *masks; | 1409 | unsigned long *masks; |
@@ -1483,8 +1483,50 @@ static const struct iio_buffer_setup_ops max1363_buffered_setup_ops = { | |||
1483 | .predisable = &iio_triggered_buffer_predisable, | 1483 | .predisable = &iio_triggered_buffer_predisable, |
1484 | }; | 1484 | }; |
1485 | 1485 | ||
1486 | static int __devinit max1363_probe(struct i2c_client *client, | 1486 | static int max1363_register_buffered_funcs_and_init(struct iio_dev *indio_dev) |
1487 | const struct i2c_device_id *id) | 1487 | { |
1488 | struct max1363_state *st = iio_priv(indio_dev); | ||
1489 | int ret = 0; | ||
1490 | |||
1491 | indio_dev->buffer = iio_kfifo_allocate(indio_dev); | ||
1492 | if (!indio_dev->buffer) { | ||
1493 | ret = -ENOMEM; | ||
1494 | goto error_ret; | ||
1495 | } | ||
1496 | indio_dev->pollfunc = iio_alloc_pollfunc(NULL, | ||
1497 | &max1363_trigger_handler, | ||
1498 | IRQF_ONESHOT, | ||
1499 | indio_dev, | ||
1500 | "%s_consumer%d", | ||
1501 | st->client->name, | ||
1502 | indio_dev->id); | ||
1503 | if (indio_dev->pollfunc == NULL) { | ||
1504 | ret = -ENOMEM; | ||
1505 | goto error_deallocate_sw_rb; | ||
1506 | } | ||
1507 | /* Buffer functions - here trigger setup related */ | ||
1508 | indio_dev->setup_ops = &max1363_buffered_setup_ops; | ||
1509 | |||
1510 | /* Flag that polled buffering is possible */ | ||
1511 | indio_dev->modes |= INDIO_BUFFER_TRIGGERED; | ||
1512 | |||
1513 | return 0; | ||
1514 | |||
1515 | error_deallocate_sw_rb: | ||
1516 | iio_kfifo_free(indio_dev->buffer); | ||
1517 | error_ret: | ||
1518 | return ret; | ||
1519 | } | ||
1520 | |||
1521 | static void max1363_buffer_cleanup(struct iio_dev *indio_dev) | ||
1522 | { | ||
1523 | /* ensure that the trigger has been detached */ | ||
1524 | iio_dealloc_pollfunc(indio_dev->pollfunc); | ||
1525 | iio_kfifo_free(indio_dev->buffer); | ||
1526 | } | ||
1527 | |||
1528 | static int max1363_probe(struct i2c_client *client, | ||
1529 | const struct i2c_device_id *id) | ||
1488 | { | 1530 | { |
1489 | int ret; | 1531 | int ret; |
1490 | struct max1363_state *st; | 1532 | struct max1363_state *st; |
@@ -1576,7 +1618,7 @@ error_out: | |||
1576 | return ret; | 1618 | return ret; |
1577 | } | 1619 | } |
1578 | 1620 | ||
1579 | static int __devexit max1363_remove(struct i2c_client *client) | 1621 | static int max1363_remove(struct i2c_client *client) |
1580 | { | 1622 | { |
1581 | struct iio_dev *indio_dev = i2c_get_clientdata(client); | 1623 | struct iio_dev *indio_dev = i2c_get_clientdata(client); |
1582 | struct max1363_state *st = iio_priv(indio_dev); | 1624 | struct max1363_state *st = iio_priv(indio_dev); |
@@ -1639,7 +1681,7 @@ static struct i2c_driver max1363_driver = { | |||
1639 | .name = "max1363", | 1681 | .name = "max1363", |
1640 | }, | 1682 | }, |
1641 | .probe = max1363_probe, | 1683 | .probe = max1363_probe, |
1642 | .remove = __devexit_p(max1363_remove), | 1684 | .remove = max1363_remove, |
1643 | .id_table = max1363_id, | 1685 | .id_table = max1363_id, |
1644 | }; | 1686 | }; |
1645 | module_i2c_driver(max1363_driver); | 1687 | module_i2c_driver(max1363_driver); |
diff --git a/drivers/iio/adc/ti_am335x_adc.c b/drivers/iio/adc/ti_am335x_adc.c index 02a43c87a8a3..cd030e100c39 100644 --- a/drivers/iio/adc/ti_am335x_adc.c +++ b/drivers/iio/adc/ti_am335x_adc.c | |||
@@ -136,7 +136,7 @@ static const struct iio_info tiadc_info = { | |||
136 | .read_raw = &tiadc_read_raw, | 136 | .read_raw = &tiadc_read_raw, |
137 | }; | 137 | }; |
138 | 138 | ||
139 | static int __devinit tiadc_probe(struct platform_device *pdev) | 139 | static int tiadc_probe(struct platform_device *pdev) |
140 | { | 140 | { |
141 | struct iio_dev *indio_dev; | 141 | struct iio_dev *indio_dev; |
142 | struct tiadc_device *adc_dev; | 142 | struct tiadc_device *adc_dev; |
@@ -188,7 +188,7 @@ err_ret: | |||
188 | return err; | 188 | return err; |
189 | } | 189 | } |
190 | 190 | ||
191 | static int __devexit tiadc_remove(struct platform_device *pdev) | 191 | static int tiadc_remove(struct platform_device *pdev) |
192 | { | 192 | { |
193 | struct iio_dev *indio_dev = platform_get_drvdata(pdev); | 193 | struct iio_dev *indio_dev = platform_get_drvdata(pdev); |
194 | 194 | ||
@@ -250,7 +250,7 @@ static struct platform_driver tiadc_driver = { | |||
250 | .pm = TIADC_PM_OPS, | 250 | .pm = TIADC_PM_OPS, |
251 | }, | 251 | }, |
252 | .probe = tiadc_probe, | 252 | .probe = tiadc_probe, |
253 | .remove = __devexit_p(tiadc_remove), | 253 | .remove = tiadc_remove, |
254 | }; | 254 | }; |
255 | 255 | ||
256 | module_platform_driver(tiadc_driver); | 256 | module_platform_driver(tiadc_driver); |
diff --git a/drivers/iio/adc/viperboard_adc.c b/drivers/iio/adc/viperboard_adc.c index 10136a8b20d4..ad0261533dee 100644 --- a/drivers/iio/adc/viperboard_adc.c +++ b/drivers/iio/adc/viperboard_adc.c | |||
@@ -116,7 +116,7 @@ static const struct iio_info vprbrd_adc_iio_info = { | |||
116 | .driver_module = THIS_MODULE, | 116 | .driver_module = THIS_MODULE, |
117 | }; | 117 | }; |
118 | 118 | ||
119 | static int __devinit vprbrd_adc_probe(struct platform_device *pdev) | 119 | static int vprbrd_adc_probe(struct platform_device *pdev) |
120 | { | 120 | { |
121 | struct vprbrd *vb = dev_get_drvdata(pdev->dev.parent); | 121 | struct vprbrd *vb = dev_get_drvdata(pdev->dev.parent); |
122 | struct vprbrd_adc *adc; | 122 | struct vprbrd_adc *adc; |
@@ -154,7 +154,7 @@ error: | |||
154 | return ret; | 154 | return ret; |
155 | } | 155 | } |
156 | 156 | ||
157 | static int __devexit vprbrd_adc_remove(struct platform_device *pdev) | 157 | static int vprbrd_adc_remove(struct platform_device *pdev) |
158 | { | 158 | { |
159 | struct iio_dev *indio_dev = platform_get_drvdata(pdev); | 159 | struct iio_dev *indio_dev = platform_get_drvdata(pdev); |
160 | 160 | ||
@@ -170,7 +170,7 @@ static struct platform_driver vprbrd_adc_driver = { | |||
170 | .owner = THIS_MODULE, | 170 | .owner = THIS_MODULE, |
171 | }, | 171 | }, |
172 | .probe = vprbrd_adc_probe, | 172 | .probe = vprbrd_adc_probe, |
173 | .remove = __devexit_p(vprbrd_adc_remove), | 173 | .remove = vprbrd_adc_remove, |
174 | }; | 174 | }; |
175 | 175 | ||
176 | module_platform_driver(vprbrd_adc_driver); | 176 | module_platform_driver(vprbrd_adc_driver); |
diff --git a/drivers/iio/amplifiers/ad8366.c b/drivers/iio/amplifiers/ad8366.c index d8281cdbfc4a..d6c0af23a2a7 100644 --- a/drivers/iio/amplifiers/ad8366.c +++ b/drivers/iio/amplifiers/ad8366.c | |||
@@ -133,7 +133,7 @@ static const struct iio_chan_spec ad8366_channels[] = { | |||
133 | AD8366_CHAN(1), | 133 | AD8366_CHAN(1), |
134 | }; | 134 | }; |
135 | 135 | ||
136 | static int __devinit ad8366_probe(struct spi_device *spi) | 136 | static int ad8366_probe(struct spi_device *spi) |
137 | { | 137 | { |
138 | struct iio_dev *indio_dev; | 138 | struct iio_dev *indio_dev; |
139 | struct ad8366_state *st; | 139 | struct ad8366_state *st; |
@@ -182,7 +182,7 @@ error_put_reg: | |||
182 | return ret; | 182 | return ret; |
183 | } | 183 | } |
184 | 184 | ||
185 | static int __devexit ad8366_remove(struct spi_device *spi) | 185 | static int ad8366_remove(struct spi_device *spi) |
186 | { | 186 | { |
187 | struct iio_dev *indio_dev = spi_get_drvdata(spi); | 187 | struct iio_dev *indio_dev = spi_get_drvdata(spi); |
188 | struct ad8366_state *st = iio_priv(indio_dev); | 188 | struct ad8366_state *st = iio_priv(indio_dev); |
@@ -211,7 +211,7 @@ static struct spi_driver ad8366_driver = { | |||
211 | .owner = THIS_MODULE, | 211 | .owner = THIS_MODULE, |
212 | }, | 212 | }, |
213 | .probe = ad8366_probe, | 213 | .probe = ad8366_probe, |
214 | .remove = __devexit_p(ad8366_remove), | 214 | .remove = ad8366_remove, |
215 | .id_table = ad8366_id, | 215 | .id_table = ad8366_id, |
216 | }; | 216 | }; |
217 | 217 | ||
diff --git a/drivers/iio/dac/ad5064.c b/drivers/iio/dac/ad5064.c index eb281a2c295b..2fe1d4edcb2f 100644 --- a/drivers/iio/dac/ad5064.c +++ b/drivers/iio/dac/ad5064.c | |||
@@ -424,8 +424,8 @@ static const char * const ad5064_vref_name(struct ad5064_state *st, | |||
424 | return st->chip_info->shared_vref ? "vref" : ad5064_vref_names[vref]; | 424 | return st->chip_info->shared_vref ? "vref" : ad5064_vref_names[vref]; |
425 | } | 425 | } |
426 | 426 | ||
427 | static int __devinit ad5064_probe(struct device *dev, enum ad5064_type type, | 427 | static int ad5064_probe(struct device *dev, enum ad5064_type type, |
428 | const char *name, ad5064_write_func write) | 428 | const char *name, ad5064_write_func write) |
429 | { | 429 | { |
430 | struct iio_dev *indio_dev; | 430 | struct iio_dev *indio_dev; |
431 | struct ad5064_state *st; | 431 | struct ad5064_state *st; |
@@ -495,7 +495,7 @@ error_free: | |||
495 | return ret; | 495 | return ret; |
496 | } | 496 | } |
497 | 497 | ||
498 | static int __devexit ad5064_remove(struct device *dev) | 498 | static int ad5064_remove(struct device *dev) |
499 | { | 499 | { |
500 | struct iio_dev *indio_dev = dev_get_drvdata(dev); | 500 | struct iio_dev *indio_dev = dev_get_drvdata(dev); |
501 | struct ad5064_state *st = iio_priv(indio_dev); | 501 | struct ad5064_state *st = iio_priv(indio_dev); |
@@ -523,7 +523,7 @@ static int ad5064_spi_write(struct ad5064_state *st, unsigned int cmd, | |||
523 | return spi_write(spi, &st->data.spi, sizeof(st->data.spi)); | 523 | return spi_write(spi, &st->data.spi, sizeof(st->data.spi)); |
524 | } | 524 | } |
525 | 525 | ||
526 | static int __devinit ad5064_spi_probe(struct spi_device *spi) | 526 | static int ad5064_spi_probe(struct spi_device *spi) |
527 | { | 527 | { |
528 | const struct spi_device_id *id = spi_get_device_id(spi); | 528 | const struct spi_device_id *id = spi_get_device_id(spi); |
529 | 529 | ||
@@ -531,7 +531,7 @@ static int __devinit ad5064_spi_probe(struct spi_device *spi) | |||
531 | ad5064_spi_write); | 531 | ad5064_spi_write); |
532 | } | 532 | } |
533 | 533 | ||
534 | static int __devexit ad5064_spi_remove(struct spi_device *spi) | 534 | static int ad5064_spi_remove(struct spi_device *spi) |
535 | { | 535 | { |
536 | return ad5064_remove(&spi->dev); | 536 | return ad5064_remove(&spi->dev); |
537 | } | 537 | } |
@@ -563,7 +563,7 @@ static struct spi_driver ad5064_spi_driver = { | |||
563 | .owner = THIS_MODULE, | 563 | .owner = THIS_MODULE, |
564 | }, | 564 | }, |
565 | .probe = ad5064_spi_probe, | 565 | .probe = ad5064_spi_probe, |
566 | .remove = __devexit_p(ad5064_spi_remove), | 566 | .remove = ad5064_spi_remove, |
567 | .id_table = ad5064_spi_ids, | 567 | .id_table = ad5064_spi_ids, |
568 | }; | 568 | }; |
569 | 569 | ||
@@ -596,14 +596,14 @@ static int ad5064_i2c_write(struct ad5064_state *st, unsigned int cmd, | |||
596 | return i2c_master_send(i2c, st->data.i2c, 3); | 596 | return i2c_master_send(i2c, st->data.i2c, 3); |
597 | } | 597 | } |
598 | 598 | ||
599 | static int __devinit ad5064_i2c_probe(struct i2c_client *i2c, | 599 | static int ad5064_i2c_probe(struct i2c_client *i2c, |
600 | const struct i2c_device_id *id) | 600 | const struct i2c_device_id *id) |
601 | { | 601 | { |
602 | return ad5064_probe(&i2c->dev, id->driver_data, id->name, | 602 | return ad5064_probe(&i2c->dev, id->driver_data, id->name, |
603 | ad5064_i2c_write); | 603 | ad5064_i2c_write); |
604 | } | 604 | } |
605 | 605 | ||
606 | static int __devexit ad5064_i2c_remove(struct i2c_client *i2c) | 606 | static int ad5064_i2c_remove(struct i2c_client *i2c) |
607 | { | 607 | { |
608 | return ad5064_remove(&i2c->dev); | 608 | return ad5064_remove(&i2c->dev); |
609 | } | 609 | } |
@@ -625,7 +625,7 @@ static struct i2c_driver ad5064_i2c_driver = { | |||
625 | .owner = THIS_MODULE, | 625 | .owner = THIS_MODULE, |
626 | }, | 626 | }, |
627 | .probe = ad5064_i2c_probe, | 627 | .probe = ad5064_i2c_probe, |
628 | .remove = __devexit_p(ad5064_i2c_remove), | 628 | .remove = ad5064_i2c_remove, |
629 | .id_table = ad5064_i2c_ids, | 629 | .id_table = ad5064_i2c_ids, |
630 | }; | 630 | }; |
631 | 631 | ||
diff --git a/drivers/iio/dac/ad5360.c b/drivers/iio/dac/ad5360.c index 8fce84fe70b1..54b46fd3aede 100644 --- a/drivers/iio/dac/ad5360.c +++ b/drivers/iio/dac/ad5360.c | |||
@@ -433,7 +433,7 @@ static const char * const ad5360_vref_name[] = { | |||
433 | "vref0", "vref1", "vref2" | 433 | "vref0", "vref1", "vref2" |
434 | }; | 434 | }; |
435 | 435 | ||
436 | static int __devinit ad5360_alloc_channels(struct iio_dev *indio_dev) | 436 | static int ad5360_alloc_channels(struct iio_dev *indio_dev) |
437 | { | 437 | { |
438 | struct ad5360_state *st = iio_priv(indio_dev); | 438 | struct ad5360_state *st = iio_priv(indio_dev); |
439 | struct iio_chan_spec *channels; | 439 | struct iio_chan_spec *channels; |
@@ -456,7 +456,7 @@ static int __devinit ad5360_alloc_channels(struct iio_dev *indio_dev) | |||
456 | return 0; | 456 | return 0; |
457 | } | 457 | } |
458 | 458 | ||
459 | static int __devinit ad5360_probe(struct spi_device *spi) | 459 | static int ad5360_probe(struct spi_device *spi) |
460 | { | 460 | { |
461 | enum ad5360_type type = spi_get_device_id(spi)->driver_data; | 461 | enum ad5360_type type = spi_get_device_id(spi)->driver_data; |
462 | struct iio_dev *indio_dev; | 462 | struct iio_dev *indio_dev; |
@@ -524,7 +524,7 @@ error_free: | |||
524 | return ret; | 524 | return ret; |
525 | } | 525 | } |
526 | 526 | ||
527 | static int __devexit ad5360_remove(struct spi_device *spi) | 527 | static int ad5360_remove(struct spi_device *spi) |
528 | { | 528 | { |
529 | struct iio_dev *indio_dev = spi_get_drvdata(spi); | 529 | struct iio_dev *indio_dev = spi_get_drvdata(spi); |
530 | struct ad5360_state *st = iio_priv(indio_dev); | 530 | struct ad5360_state *st = iio_priv(indio_dev); |
@@ -560,7 +560,7 @@ static struct spi_driver ad5360_driver = { | |||
560 | .owner = THIS_MODULE, | 560 | .owner = THIS_MODULE, |
561 | }, | 561 | }, |
562 | .probe = ad5360_probe, | 562 | .probe = ad5360_probe, |
563 | .remove = __devexit_p(ad5360_remove), | 563 | .remove = ad5360_remove, |
564 | .id_table = ad5360_ids, | 564 | .id_table = ad5360_ids, |
565 | }; | 565 | }; |
566 | module_spi_driver(ad5360_driver); | 566 | module_spi_driver(ad5360_driver); |
diff --git a/drivers/iio/dac/ad5380.c b/drivers/iio/dac/ad5380.c index 4aca1895ce52..483fc379a2da 100644 --- a/drivers/iio/dac/ad5380.c +++ b/drivers/iio/dac/ad5380.c | |||
@@ -338,7 +338,7 @@ static const struct ad5380_chip_info ad5380_chip_info_tbl[] = { | |||
338 | }, | 338 | }, |
339 | }; | 339 | }; |
340 | 340 | ||
341 | static int __devinit ad5380_alloc_channels(struct iio_dev *indio_dev) | 341 | static int ad5380_alloc_channels(struct iio_dev *indio_dev) |
342 | { | 342 | { |
343 | struct ad5380_state *st = iio_priv(indio_dev); | 343 | struct ad5380_state *st = iio_priv(indio_dev); |
344 | struct iio_chan_spec *channels; | 344 | struct iio_chan_spec *channels; |
@@ -361,8 +361,8 @@ static int __devinit ad5380_alloc_channels(struct iio_dev *indio_dev) | |||
361 | return 0; | 361 | return 0; |
362 | } | 362 | } |
363 | 363 | ||
364 | static int __devinit ad5380_probe(struct device *dev, struct regmap *regmap, | 364 | static int ad5380_probe(struct device *dev, struct regmap *regmap, |
365 | enum ad5380_type type, const char *name) | 365 | enum ad5380_type type, const char *name) |
366 | { | 366 | { |
367 | struct iio_dev *indio_dev; | 367 | struct iio_dev *indio_dev; |
368 | struct ad5380_state *st; | 368 | struct ad5380_state *st; |
@@ -445,7 +445,7 @@ error_out: | |||
445 | return ret; | 445 | return ret; |
446 | } | 446 | } |
447 | 447 | ||
448 | static int __devexit ad5380_remove(struct device *dev) | 448 | static int ad5380_remove(struct device *dev) |
449 | { | 449 | { |
450 | struct iio_dev *indio_dev = dev_get_drvdata(dev); | 450 | struct iio_dev *indio_dev = dev_get_drvdata(dev); |
451 | struct ad5380_state *st = iio_priv(indio_dev); | 451 | struct ad5380_state *st = iio_priv(indio_dev); |
@@ -482,7 +482,7 @@ static const struct regmap_config ad5380_regmap_config = { | |||
482 | 482 | ||
483 | #if IS_ENABLED(CONFIG_SPI_MASTER) | 483 | #if IS_ENABLED(CONFIG_SPI_MASTER) |
484 | 484 | ||
485 | static int __devinit ad5380_spi_probe(struct spi_device *spi) | 485 | static int ad5380_spi_probe(struct spi_device *spi) |
486 | { | 486 | { |
487 | const struct spi_device_id *id = spi_get_device_id(spi); | 487 | const struct spi_device_id *id = spi_get_device_id(spi); |
488 | struct regmap *regmap; | 488 | struct regmap *regmap; |
@@ -495,7 +495,7 @@ static int __devinit ad5380_spi_probe(struct spi_device *spi) | |||
495 | return ad5380_probe(&spi->dev, regmap, id->driver_data, id->name); | 495 | return ad5380_probe(&spi->dev, regmap, id->driver_data, id->name); |
496 | } | 496 | } |
497 | 497 | ||
498 | static int __devexit ad5380_spi_remove(struct spi_device *spi) | 498 | static int ad5380_spi_remove(struct spi_device *spi) |
499 | { | 499 | { |
500 | return ad5380_remove(&spi->dev); | 500 | return ad5380_remove(&spi->dev); |
501 | } | 501 | } |
@@ -527,7 +527,7 @@ static struct spi_driver ad5380_spi_driver = { | |||
527 | .owner = THIS_MODULE, | 527 | .owner = THIS_MODULE, |
528 | }, | 528 | }, |
529 | .probe = ad5380_spi_probe, | 529 | .probe = ad5380_spi_probe, |
530 | .remove = __devexit_p(ad5380_spi_remove), | 530 | .remove = ad5380_spi_remove, |
531 | .id_table = ad5380_spi_ids, | 531 | .id_table = ad5380_spi_ids, |
532 | }; | 532 | }; |
533 | 533 | ||
@@ -556,8 +556,8 @@ static inline void ad5380_spi_unregister_driver(void) | |||
556 | 556 | ||
557 | #if IS_ENABLED(CONFIG_I2C) | 557 | #if IS_ENABLED(CONFIG_I2C) |
558 | 558 | ||
559 | static int __devinit ad5380_i2c_probe(struct i2c_client *i2c, | 559 | static int ad5380_i2c_probe(struct i2c_client *i2c, |
560 | const struct i2c_device_id *id) | 560 | const struct i2c_device_id *id) |
561 | { | 561 | { |
562 | struct regmap *regmap; | 562 | struct regmap *regmap; |
563 | 563 | ||
@@ -569,7 +569,7 @@ static int __devinit ad5380_i2c_probe(struct i2c_client *i2c, | |||
569 | return ad5380_probe(&i2c->dev, regmap, id->driver_data, id->name); | 569 | return ad5380_probe(&i2c->dev, regmap, id->driver_data, id->name); |
570 | } | 570 | } |
571 | 571 | ||
572 | static int __devexit ad5380_i2c_remove(struct i2c_client *i2c) | 572 | static int ad5380_i2c_remove(struct i2c_client *i2c) |
573 | { | 573 | { |
574 | return ad5380_remove(&i2c->dev); | 574 | return ad5380_remove(&i2c->dev); |
575 | } | 575 | } |
@@ -601,7 +601,7 @@ static struct i2c_driver ad5380_i2c_driver = { | |||
601 | .owner = THIS_MODULE, | 601 | .owner = THIS_MODULE, |
602 | }, | 602 | }, |
603 | .probe = ad5380_i2c_probe, | 603 | .probe = ad5380_i2c_probe, |
604 | .remove = __devexit_p(ad5380_i2c_remove), | 604 | .remove = ad5380_i2c_remove, |
605 | .id_table = ad5380_i2c_ids, | 605 | .id_table = ad5380_i2c_ids, |
606 | }; | 606 | }; |
607 | 607 | ||
diff --git a/drivers/iio/dac/ad5421.c b/drivers/iio/dac/ad5421.c index cdbc5bf25c31..43be948db83e 100644 --- a/drivers/iio/dac/ad5421.c +++ b/drivers/iio/dac/ad5421.c | |||
@@ -449,7 +449,7 @@ static const struct iio_info ad5421_info = { | |||
449 | .driver_module = THIS_MODULE, | 449 | .driver_module = THIS_MODULE, |
450 | }; | 450 | }; |
451 | 451 | ||
452 | static int __devinit ad5421_probe(struct spi_device *spi) | 452 | static int ad5421_probe(struct spi_device *spi) |
453 | { | 453 | { |
454 | struct ad5421_platform_data *pdata = dev_get_platdata(&spi->dev); | 454 | struct ad5421_platform_data *pdata = dev_get_platdata(&spi->dev); |
455 | struct iio_dev *indio_dev; | 455 | struct iio_dev *indio_dev; |
@@ -516,7 +516,7 @@ error_free: | |||
516 | return ret; | 516 | return ret; |
517 | } | 517 | } |
518 | 518 | ||
519 | static int __devexit ad5421_remove(struct spi_device *spi) | 519 | static int ad5421_remove(struct spi_device *spi) |
520 | { | 520 | { |
521 | struct iio_dev *indio_dev = spi_get_drvdata(spi); | 521 | struct iio_dev *indio_dev = spi_get_drvdata(spi); |
522 | 522 | ||
@@ -534,7 +534,7 @@ static struct spi_driver ad5421_driver = { | |||
534 | .owner = THIS_MODULE, | 534 | .owner = THIS_MODULE, |
535 | }, | 535 | }, |
536 | .probe = ad5421_probe, | 536 | .probe = ad5421_probe, |
537 | .remove = __devexit_p(ad5421_remove), | 537 | .remove = ad5421_remove, |
538 | }; | 538 | }; |
539 | module_spi_driver(ad5421_driver); | 539 | module_spi_driver(ad5421_driver); |
540 | 540 | ||
diff --git a/drivers/iio/dac/ad5446.c b/drivers/iio/dac/ad5446.c index ecb639540dff..f5583aedfb59 100644 --- a/drivers/iio/dac/ad5446.c +++ b/drivers/iio/dac/ad5446.c | |||
@@ -212,8 +212,8 @@ static const struct iio_info ad5446_info = { | |||
212 | .driver_module = THIS_MODULE, | 212 | .driver_module = THIS_MODULE, |
213 | }; | 213 | }; |
214 | 214 | ||
215 | static int __devinit ad5446_probe(struct device *dev, const char *name, | 215 | static int ad5446_probe(struct device *dev, const char *name, |
216 | const struct ad5446_chip_info *chip_info) | 216 | const struct ad5446_chip_info *chip_info) |
217 | { | 217 | { |
218 | struct ad5446_state *st; | 218 | struct ad5446_state *st; |
219 | struct iio_dev *indio_dev; | 219 | struct iio_dev *indio_dev; |
@@ -465,7 +465,7 @@ static const struct spi_device_id ad5446_spi_ids[] = { | |||
465 | }; | 465 | }; |
466 | MODULE_DEVICE_TABLE(spi, ad5446_spi_ids); | 466 | MODULE_DEVICE_TABLE(spi, ad5446_spi_ids); |
467 | 467 | ||
468 | static int __devinit ad5446_spi_probe(struct spi_device *spi) | 468 | static int ad5446_spi_probe(struct spi_device *spi) |
469 | { | 469 | { |
470 | const struct spi_device_id *id = spi_get_device_id(spi); | 470 | const struct spi_device_id *id = spi_get_device_id(spi); |
471 | 471 | ||
@@ -473,7 +473,7 @@ static int __devinit ad5446_spi_probe(struct spi_device *spi) | |||
473 | &ad5446_spi_chip_info[id->driver_data]); | 473 | &ad5446_spi_chip_info[id->driver_data]); |
474 | } | 474 | } |
475 | 475 | ||
476 | static int __devexit ad5446_spi_remove(struct spi_device *spi) | 476 | static int ad5446_spi_remove(struct spi_device *spi) |
477 | { | 477 | { |
478 | return ad5446_remove(&spi->dev); | 478 | return ad5446_remove(&spi->dev); |
479 | } | 479 | } |
@@ -484,7 +484,7 @@ static struct spi_driver ad5446_spi_driver = { | |||
484 | .owner = THIS_MODULE, | 484 | .owner = THIS_MODULE, |
485 | }, | 485 | }, |
486 | .probe = ad5446_spi_probe, | 486 | .probe = ad5446_spi_probe, |
487 | .remove = __devexit_p(ad5446_spi_remove), | 487 | .remove = ad5446_spi_remove, |
488 | .id_table = ad5446_spi_ids, | 488 | .id_table = ad5446_spi_ids, |
489 | }; | 489 | }; |
490 | 490 | ||
@@ -543,14 +543,14 @@ static const struct ad5446_chip_info ad5446_i2c_chip_info[] = { | |||
543 | }, | 543 | }, |
544 | }; | 544 | }; |
545 | 545 | ||
546 | static int __devinit ad5446_i2c_probe(struct i2c_client *i2c, | 546 | static int ad5446_i2c_probe(struct i2c_client *i2c, |
547 | const struct i2c_device_id *id) | 547 | const struct i2c_device_id *id) |
548 | { | 548 | { |
549 | return ad5446_probe(&i2c->dev, id->name, | 549 | return ad5446_probe(&i2c->dev, id->name, |
550 | &ad5446_i2c_chip_info[id->driver_data]); | 550 | &ad5446_i2c_chip_info[id->driver_data]); |
551 | } | 551 | } |
552 | 552 | ||
553 | static int __devexit ad5446_i2c_remove(struct i2c_client *i2c) | 553 | static int ad5446_i2c_remove(struct i2c_client *i2c) |
554 | { | 554 | { |
555 | return ad5446_remove(&i2c->dev); | 555 | return ad5446_remove(&i2c->dev); |
556 | } | 556 | } |
@@ -572,7 +572,7 @@ static struct i2c_driver ad5446_i2c_driver = { | |||
572 | .owner = THIS_MODULE, | 572 | .owner = THIS_MODULE, |
573 | }, | 573 | }, |
574 | .probe = ad5446_i2c_probe, | 574 | .probe = ad5446_i2c_probe, |
575 | .remove = __devexit_p(ad5446_i2c_remove), | 575 | .remove = ad5446_i2c_remove, |
576 | .id_table = ad5446_i2c_ids, | 576 | .id_table = ad5446_i2c_ids, |
577 | }; | 577 | }; |
578 | 578 | ||
diff --git a/drivers/iio/dac/ad5449.c b/drivers/iio/dac/ad5449.c index 0ee6f8eeba8d..c4731b7b577b 100644 --- a/drivers/iio/dac/ad5449.c +++ b/drivers/iio/dac/ad5449.c | |||
@@ -266,7 +266,7 @@ static const char *ad5449_vref_name(struct ad5449 *st, int n) | |||
266 | return "VREFB"; | 266 | return "VREFB"; |
267 | } | 267 | } |
268 | 268 | ||
269 | static int __devinit ad5449_spi_probe(struct spi_device *spi) | 269 | static int ad5449_spi_probe(struct spi_device *spi) |
270 | { | 270 | { |
271 | struct ad5449_platform_data *pdata = spi->dev.platform_data; | 271 | struct ad5449_platform_data *pdata = spi->dev.platform_data; |
272 | const struct spi_device_id *id = spi_get_device_id(spi); | 272 | const struct spi_device_id *id = spi_get_device_id(spi); |
@@ -333,7 +333,7 @@ error_free: | |||
333 | return ret; | 333 | return ret; |
334 | } | 334 | } |
335 | 335 | ||
336 | static int __devexit ad5449_spi_remove(struct spi_device *spi) | 336 | static int ad5449_spi_remove(struct spi_device *spi) |
337 | { | 337 | { |
338 | struct iio_dev *indio_dev = spi_get_drvdata(spi); | 338 | struct iio_dev *indio_dev = spi_get_drvdata(spi); |
339 | struct ad5449 *st = iio_priv(indio_dev); | 339 | struct ad5449 *st = iio_priv(indio_dev); |
@@ -366,7 +366,7 @@ static struct spi_driver ad5449_spi_driver = { | |||
366 | .owner = THIS_MODULE, | 366 | .owner = THIS_MODULE, |
367 | }, | 367 | }, |
368 | .probe = ad5449_spi_probe, | 368 | .probe = ad5449_spi_probe, |
369 | .remove = __devexit_p(ad5449_spi_remove), | 369 | .remove = ad5449_spi_remove, |
370 | .id_table = ad5449_spi_ids, | 370 | .id_table = ad5449_spi_ids, |
371 | }; | 371 | }; |
372 | module_spi_driver(ad5449_spi_driver); | 372 | module_spi_driver(ad5449_spi_driver); |
diff --git a/drivers/iio/dac/ad5504.c b/drivers/iio/dac/ad5504.c index 7f7c026b9d8a..0661829f2773 100644 --- a/drivers/iio/dac/ad5504.c +++ b/drivers/iio/dac/ad5504.c | |||
@@ -277,7 +277,7 @@ static const struct iio_chan_spec ad5504_channels[] = { | |||
277 | AD5504_CHANNEL(3), | 277 | AD5504_CHANNEL(3), |
278 | }; | 278 | }; |
279 | 279 | ||
280 | static int __devinit ad5504_probe(struct spi_device *spi) | 280 | static int ad5504_probe(struct spi_device *spi) |
281 | { | 281 | { |
282 | struct ad5504_platform_data *pdata = spi->dev.platform_data; | 282 | struct ad5504_platform_data *pdata = spi->dev.platform_data; |
283 | struct iio_dev *indio_dev; | 283 | struct iio_dev *indio_dev; |
@@ -356,7 +356,7 @@ error_ret: | |||
356 | return ret; | 356 | return ret; |
357 | } | 357 | } |
358 | 358 | ||
359 | static int __devexit ad5504_remove(struct spi_device *spi) | 359 | static int ad5504_remove(struct spi_device *spi) |
360 | { | 360 | { |
361 | struct iio_dev *indio_dev = spi_get_drvdata(spi); | 361 | struct iio_dev *indio_dev = spi_get_drvdata(spi); |
362 | struct ad5504_state *st = iio_priv(indio_dev); | 362 | struct ad5504_state *st = iio_priv(indio_dev); |
@@ -387,7 +387,7 @@ static struct spi_driver ad5504_driver = { | |||
387 | .owner = THIS_MODULE, | 387 | .owner = THIS_MODULE, |
388 | }, | 388 | }, |
389 | .probe = ad5504_probe, | 389 | .probe = ad5504_probe, |
390 | .remove = __devexit_p(ad5504_remove), | 390 | .remove = ad5504_remove, |
391 | .id_table = ad5504_id, | 391 | .id_table = ad5504_id, |
392 | }; | 392 | }; |
393 | module_spi_driver(ad5504_driver); | 393 | module_spi_driver(ad5504_driver); |
diff --git a/drivers/iio/dac/ad5624r_spi.c b/drivers/iio/dac/ad5624r_spi.c index 14ea3dbf4902..f6e116627b71 100644 --- a/drivers/iio/dac/ad5624r_spi.c +++ b/drivers/iio/dac/ad5624r_spi.c | |||
@@ -220,7 +220,7 @@ static const struct ad5624r_chip_info ad5624r_chip_info_tbl[] = { | |||
220 | }, | 220 | }, |
221 | }; | 221 | }; |
222 | 222 | ||
223 | static int __devinit ad5624r_probe(struct spi_device *spi) | 223 | static int ad5624r_probe(struct spi_device *spi) |
224 | { | 224 | { |
225 | struct ad5624r_state *st; | 225 | struct ad5624r_state *st; |
226 | struct iio_dev *indio_dev; | 226 | struct iio_dev *indio_dev; |
@@ -286,7 +286,7 @@ error_ret: | |||
286 | return ret; | 286 | return ret; |
287 | } | 287 | } |
288 | 288 | ||
289 | static int __devexit ad5624r_remove(struct spi_device *spi) | 289 | static int ad5624r_remove(struct spi_device *spi) |
290 | { | 290 | { |
291 | struct iio_dev *indio_dev = spi_get_drvdata(spi); | 291 | struct iio_dev *indio_dev = spi_get_drvdata(spi); |
292 | struct ad5624r_state *st = iio_priv(indio_dev); | 292 | struct ad5624r_state *st = iio_priv(indio_dev); |
@@ -318,7 +318,7 @@ static struct spi_driver ad5624r_driver = { | |||
318 | .owner = THIS_MODULE, | 318 | .owner = THIS_MODULE, |
319 | }, | 319 | }, |
320 | .probe = ad5624r_probe, | 320 | .probe = ad5624r_probe, |
321 | .remove = __devexit_p(ad5624r_remove), | 321 | .remove = ad5624r_remove, |
322 | .id_table = ad5624r_id, | 322 | .id_table = ad5624r_id, |
323 | }; | 323 | }; |
324 | module_spi_driver(ad5624r_driver); | 324 | module_spi_driver(ad5624r_driver); |
diff --git a/drivers/iio/dac/ad5686.c b/drivers/iio/dac/ad5686.c index 01eb1d0e4e41..ca9609d7a15c 100644 --- a/drivers/iio/dac/ad5686.c +++ b/drivers/iio/dac/ad5686.c | |||
@@ -313,7 +313,7 @@ static const struct ad5686_chip_info ad5686_chip_info_tbl[] = { | |||
313 | }; | 313 | }; |
314 | 314 | ||
315 | 315 | ||
316 | static int __devinit ad5686_probe(struct spi_device *spi) | 316 | static int ad5686_probe(struct spi_device *spi) |
317 | { | 317 | { |
318 | struct ad5686_state *st; | 318 | struct ad5686_state *st; |
319 | struct iio_dev *indio_dev; | 319 | struct iio_dev *indio_dev; |
@@ -383,7 +383,7 @@ error_put_reg: | |||
383 | return ret; | 383 | return ret; |
384 | } | 384 | } |
385 | 385 | ||
386 | static int __devexit ad5686_remove(struct spi_device *spi) | 386 | static int ad5686_remove(struct spi_device *spi) |
387 | { | 387 | { |
388 | struct iio_dev *indio_dev = spi_get_drvdata(spi); | 388 | struct iio_dev *indio_dev = spi_get_drvdata(spi); |
389 | struct ad5686_state *st = iio_priv(indio_dev); | 389 | struct ad5686_state *st = iio_priv(indio_dev); |
@@ -412,7 +412,7 @@ static struct spi_driver ad5686_driver = { | |||
412 | .owner = THIS_MODULE, | 412 | .owner = THIS_MODULE, |
413 | }, | 413 | }, |
414 | .probe = ad5686_probe, | 414 | .probe = ad5686_probe, |
415 | .remove = __devexit_p(ad5686_remove), | 415 | .remove = ad5686_remove, |
416 | .id_table = ad5686_id, | 416 | .id_table = ad5686_id, |
417 | }; | 417 | }; |
418 | module_spi_driver(ad5686_driver); | 418 | module_spi_driver(ad5686_driver); |
diff --git a/drivers/iio/dac/ad5755.c b/drivers/iio/dac/ad5755.c index 5db3506034c5..0869bbd27d30 100644 --- a/drivers/iio/dac/ad5755.c +++ b/drivers/iio/dac/ad5755.c | |||
@@ -447,8 +447,8 @@ static bool ad5755_is_valid_mode(struct ad5755_state *st, enum ad5755_mode mode) | |||
447 | } | 447 | } |
448 | } | 448 | } |
449 | 449 | ||
450 | static int __devinit ad5755_setup_pdata(struct iio_dev *indio_dev, | 450 | static int ad5755_setup_pdata(struct iio_dev *indio_dev, |
451 | const struct ad5755_platform_data *pdata) | 451 | const struct ad5755_platform_data *pdata) |
452 | { | 452 | { |
453 | struct ad5755_state *st = iio_priv(indio_dev); | 453 | struct ad5755_state *st = iio_priv(indio_dev); |
454 | unsigned int val; | 454 | unsigned int val; |
@@ -503,7 +503,7 @@ static int __devinit ad5755_setup_pdata(struct iio_dev *indio_dev, | |||
503 | return 0; | 503 | return 0; |
504 | } | 504 | } |
505 | 505 | ||
506 | static bool __devinit ad5755_is_voltage_mode(enum ad5755_mode mode) | 506 | static bool ad5755_is_voltage_mode(enum ad5755_mode mode) |
507 | { | 507 | { |
508 | switch (mode) { | 508 | switch (mode) { |
509 | case AD5755_MODE_VOLTAGE_0V_5V: | 509 | case AD5755_MODE_VOLTAGE_0V_5V: |
@@ -516,8 +516,8 @@ static bool __devinit ad5755_is_voltage_mode(enum ad5755_mode mode) | |||
516 | } | 516 | } |
517 | } | 517 | } |
518 | 518 | ||
519 | static int __devinit ad5755_init_channels(struct iio_dev *indio_dev, | 519 | static int ad5755_init_channels(struct iio_dev *indio_dev, |
520 | const struct ad5755_platform_data *pdata) | 520 | const struct ad5755_platform_data *pdata) |
521 | { | 521 | { |
522 | struct ad5755_state *st = iio_priv(indio_dev); | 522 | struct ad5755_state *st = iio_priv(indio_dev); |
523 | struct iio_chan_spec *channels = st->channels; | 523 | struct iio_chan_spec *channels = st->channels; |
@@ -562,7 +562,7 @@ static const struct ad5755_platform_data ad5755_default_pdata = { | |||
562 | }, | 562 | }, |
563 | }; | 563 | }; |
564 | 564 | ||
565 | static int __devinit ad5755_probe(struct spi_device *spi) | 565 | static int ad5755_probe(struct spi_device *spi) |
566 | { | 566 | { |
567 | enum ad5755_type type = spi_get_device_id(spi)->driver_data; | 567 | enum ad5755_type type = spi_get_device_id(spi)->driver_data; |
568 | const struct ad5755_platform_data *pdata = dev_get_platdata(&spi->dev); | 568 | const struct ad5755_platform_data *pdata = dev_get_platdata(&spi->dev); |
@@ -614,7 +614,7 @@ error_free: | |||
614 | return ret; | 614 | return ret; |
615 | } | 615 | } |
616 | 616 | ||
617 | static int __devexit ad5755_remove(struct spi_device *spi) | 617 | static int ad5755_remove(struct spi_device *spi) |
618 | { | 618 | { |
619 | struct iio_dev *indio_dev = spi_get_drvdata(spi); | 619 | struct iio_dev *indio_dev = spi_get_drvdata(spi); |
620 | 620 | ||
@@ -640,7 +640,7 @@ static struct spi_driver ad5755_driver = { | |||
640 | .owner = THIS_MODULE, | 640 | .owner = THIS_MODULE, |
641 | }, | 641 | }, |
642 | .probe = ad5755_probe, | 642 | .probe = ad5755_probe, |
643 | .remove = __devexit_p(ad5755_remove), | 643 | .remove = ad5755_remove, |
644 | .id_table = ad5755_id, | 644 | .id_table = ad5755_id, |
645 | }; | 645 | }; |
646 | module_spi_driver(ad5755_driver); | 646 | module_spi_driver(ad5755_driver); |
diff --git a/drivers/iio/dac/ad5764.c b/drivers/iio/dac/ad5764.c index ffce30447445..7f9045e6daa4 100644 --- a/drivers/iio/dac/ad5764.c +++ b/drivers/iio/dac/ad5764.c | |||
@@ -273,7 +273,7 @@ static const struct iio_info ad5764_info = { | |||
273 | .driver_module = THIS_MODULE, | 273 | .driver_module = THIS_MODULE, |
274 | }; | 274 | }; |
275 | 275 | ||
276 | static int __devinit ad5764_probe(struct spi_device *spi) | 276 | static int ad5764_probe(struct spi_device *spi) |
277 | { | 277 | { |
278 | enum ad5764_type type = spi_get_device_id(spi)->driver_data; | 278 | enum ad5764_type type = spi_get_device_id(spi)->driver_data; |
279 | struct iio_dev *indio_dev; | 279 | struct iio_dev *indio_dev; |
@@ -340,7 +340,7 @@ error_free: | |||
340 | return ret; | 340 | return ret; |
341 | } | 341 | } |
342 | 342 | ||
343 | static int __devexit ad5764_remove(struct spi_device *spi) | 343 | static int ad5764_remove(struct spi_device *spi) |
344 | { | 344 | { |
345 | struct iio_dev *indio_dev = spi_get_drvdata(spi); | 345 | struct iio_dev *indio_dev = spi_get_drvdata(spi); |
346 | struct ad5764_state *st = iio_priv(indio_dev); | 346 | struct ad5764_state *st = iio_priv(indio_dev); |
@@ -372,7 +372,7 @@ static struct spi_driver ad5764_driver = { | |||
372 | .owner = THIS_MODULE, | 372 | .owner = THIS_MODULE, |
373 | }, | 373 | }, |
374 | .probe = ad5764_probe, | 374 | .probe = ad5764_probe, |
375 | .remove = __devexit_p(ad5764_remove), | 375 | .remove = ad5764_remove, |
376 | .id_table = ad5764_ids, | 376 | .id_table = ad5764_ids, |
377 | }; | 377 | }; |
378 | module_spi_driver(ad5764_driver); | 378 | module_spi_driver(ad5764_driver); |
diff --git a/drivers/iio/dac/ad5791.c b/drivers/iio/dac/ad5791.c index 6efe83e32ac6..6407b5407ddd 100644 --- a/drivers/iio/dac/ad5791.c +++ b/drivers/iio/dac/ad5791.c | |||
@@ -346,7 +346,7 @@ static const struct iio_info ad5791_info = { | |||
346 | .driver_module = THIS_MODULE, | 346 | .driver_module = THIS_MODULE, |
347 | }; | 347 | }; |
348 | 348 | ||
349 | static int __devinit ad5791_probe(struct spi_device *spi) | 349 | static int ad5791_probe(struct spi_device *spi) |
350 | { | 350 | { |
351 | struct ad5791_platform_data *pdata = spi->dev.platform_data; | 351 | struct ad5791_platform_data *pdata = spi->dev.platform_data; |
352 | struct iio_dev *indio_dev; | 352 | struct iio_dev *indio_dev; |
@@ -448,7 +448,7 @@ error_ret: | |||
448 | return ret; | 448 | return ret; |
449 | } | 449 | } |
450 | 450 | ||
451 | static int __devexit ad5791_remove(struct spi_device *spi) | 451 | static int ad5791_remove(struct spi_device *spi) |
452 | { | 452 | { |
453 | struct iio_dev *indio_dev = spi_get_drvdata(spi); | 453 | struct iio_dev *indio_dev = spi_get_drvdata(spi); |
454 | struct ad5791_state *st = iio_priv(indio_dev); | 454 | struct ad5791_state *st = iio_priv(indio_dev); |
@@ -484,7 +484,7 @@ static struct spi_driver ad5791_driver = { | |||
484 | .owner = THIS_MODULE, | 484 | .owner = THIS_MODULE, |
485 | }, | 485 | }, |
486 | .probe = ad5791_probe, | 486 | .probe = ad5791_probe, |
487 | .remove = __devexit_p(ad5791_remove), | 487 | .remove = ad5791_remove, |
488 | .id_table = ad5791_id, | 488 | .id_table = ad5791_id, |
489 | }; | 489 | }; |
490 | module_spi_driver(ad5791_driver); | 490 | module_spi_driver(ad5791_driver); |
diff --git a/drivers/iio/dac/max517.c b/drivers/iio/dac/max517.c index c3d748c25939..352abe2004a4 100644 --- a/drivers/iio/dac/max517.c +++ b/drivers/iio/dac/max517.c | |||
@@ -156,7 +156,7 @@ static const struct iio_chan_spec max517_channels[] = { | |||
156 | MAX517_CHANNEL(1) | 156 | MAX517_CHANNEL(1) |
157 | }; | 157 | }; |
158 | 158 | ||
159 | static int __devinit max517_probe(struct i2c_client *client, | 159 | static int max517_probe(struct i2c_client *client, |
160 | const struct i2c_device_id *id) | 160 | const struct i2c_device_id *id) |
161 | { | 161 | { |
162 | struct max517_data *data; | 162 | struct max517_data *data; |
@@ -210,7 +210,7 @@ exit: | |||
210 | return err; | 210 | return err; |
211 | } | 211 | } |
212 | 212 | ||
213 | static int __devexit max517_remove(struct i2c_client *client) | 213 | static int max517_remove(struct i2c_client *client) |
214 | { | 214 | { |
215 | iio_device_unregister(i2c_get_clientdata(client)); | 215 | iio_device_unregister(i2c_get_clientdata(client)); |
216 | iio_device_free(i2c_get_clientdata(client)); | 216 | iio_device_free(i2c_get_clientdata(client)); |
@@ -232,7 +232,7 @@ static struct i2c_driver max517_driver = { | |||
232 | .pm = MAX517_PM_OPS, | 232 | .pm = MAX517_PM_OPS, |
233 | }, | 233 | }, |
234 | .probe = max517_probe, | 234 | .probe = max517_probe, |
235 | .remove = __devexit_p(max517_remove), | 235 | .remove = max517_remove, |
236 | .id_table = max517_id, | 236 | .id_table = max517_id, |
237 | }; | 237 | }; |
238 | module_i2c_driver(max517_driver); | 238 | module_i2c_driver(max517_driver); |
diff --git a/drivers/iio/dac/mcp4725.c b/drivers/iio/dac/mcp4725.c index e0e168bd5b45..8f88cc4059a2 100644 --- a/drivers/iio/dac/mcp4725.c +++ b/drivers/iio/dac/mcp4725.c | |||
@@ -141,8 +141,8 @@ static const struct iio_info mcp4725_info = { | |||
141 | .driver_module = THIS_MODULE, | 141 | .driver_module = THIS_MODULE, |
142 | }; | 142 | }; |
143 | 143 | ||
144 | static int __devinit mcp4725_probe(struct i2c_client *client, | 144 | static int mcp4725_probe(struct i2c_client *client, |
145 | const struct i2c_device_id *id) | 145 | const struct i2c_device_id *id) |
146 | { | 146 | { |
147 | struct mcp4725_data *data; | 147 | struct mcp4725_data *data; |
148 | struct iio_dev *indio_dev; | 148 | struct iio_dev *indio_dev; |
@@ -195,7 +195,7 @@ exit: | |||
195 | return err; | 195 | return err; |
196 | } | 196 | } |
197 | 197 | ||
198 | static int __devexit mcp4725_remove(struct i2c_client *client) | 198 | static int mcp4725_remove(struct i2c_client *client) |
199 | { | 199 | { |
200 | struct iio_dev *indio_dev = i2c_get_clientdata(client); | 200 | struct iio_dev *indio_dev = i2c_get_clientdata(client); |
201 | 201 | ||
@@ -217,7 +217,7 @@ static struct i2c_driver mcp4725_driver = { | |||
217 | .pm = MCP4725_PM_OPS, | 217 | .pm = MCP4725_PM_OPS, |
218 | }, | 218 | }, |
219 | .probe = mcp4725_probe, | 219 | .probe = mcp4725_probe, |
220 | .remove = __devexit_p(mcp4725_remove), | 220 | .remove = mcp4725_remove, |
221 | .id_table = mcp4725_id, | 221 | .id_table = mcp4725_id, |
222 | }; | 222 | }; |
223 | module_i2c_driver(mcp4725_driver); | 223 | module_i2c_driver(mcp4725_driver); |
diff --git a/drivers/iio/frequency/ad9523.c b/drivers/iio/frequency/ad9523.c index b737c64a402d..80307473e3a9 100644 --- a/drivers/iio/frequency/ad9523.c +++ b/drivers/iio/frequency/ad9523.c | |||
@@ -959,7 +959,7 @@ static int ad9523_setup(struct iio_dev *indio_dev) | |||
959 | return 0; | 959 | return 0; |
960 | } | 960 | } |
961 | 961 | ||
962 | static int __devinit ad9523_probe(struct spi_device *spi) | 962 | static int ad9523_probe(struct spi_device *spi) |
963 | { | 963 | { |
964 | struct ad9523_platform_data *pdata = spi->dev.platform_data; | 964 | struct ad9523_platform_data *pdata = spi->dev.platform_data; |
965 | struct iio_dev *indio_dev; | 965 | struct iio_dev *indio_dev; |
@@ -1020,7 +1020,7 @@ error_put_reg: | |||
1020 | return ret; | 1020 | return ret; |
1021 | } | 1021 | } |
1022 | 1022 | ||
1023 | static int __devexit ad9523_remove(struct spi_device *spi) | 1023 | static int ad9523_remove(struct spi_device *spi) |
1024 | { | 1024 | { |
1025 | struct iio_dev *indio_dev = spi_get_drvdata(spi); | 1025 | struct iio_dev *indio_dev = spi_get_drvdata(spi); |
1026 | struct ad9523_state *st = iio_priv(indio_dev); | 1026 | struct ad9523_state *st = iio_priv(indio_dev); |
@@ -1049,7 +1049,7 @@ static struct spi_driver ad9523_driver = { | |||
1049 | .owner = THIS_MODULE, | 1049 | .owner = THIS_MODULE, |
1050 | }, | 1050 | }, |
1051 | .probe = ad9523_probe, | 1051 | .probe = ad9523_probe, |
1052 | .remove = __devexit_p(ad9523_remove), | 1052 | .remove = ad9523_remove, |
1053 | .id_table = ad9523_id, | 1053 | .id_table = ad9523_id, |
1054 | }; | 1054 | }; |
1055 | module_spi_driver(ad9523_driver); | 1055 | module_spi_driver(ad9523_driver); |
diff --git a/drivers/iio/frequency/adf4350.c b/drivers/iio/frequency/adf4350.c index c7de8b5a01ff..a884252ac66b 100644 --- a/drivers/iio/frequency/adf4350.c +++ b/drivers/iio/frequency/adf4350.c | |||
@@ -355,7 +355,7 @@ static const struct iio_info adf4350_info = { | |||
355 | .driver_module = THIS_MODULE, | 355 | .driver_module = THIS_MODULE, |
356 | }; | 356 | }; |
357 | 357 | ||
358 | static int __devinit adf4350_probe(struct spi_device *spi) | 358 | static int adf4350_probe(struct spi_device *spi) |
359 | { | 359 | { |
360 | struct adf4350_platform_data *pdata = spi->dev.platform_data; | 360 | struct adf4350_platform_data *pdata = spi->dev.platform_data; |
361 | struct iio_dev *indio_dev; | 361 | struct iio_dev *indio_dev; |
@@ -440,7 +440,7 @@ error_put_reg: | |||
440 | return ret; | 440 | return ret; |
441 | } | 441 | } |
442 | 442 | ||
443 | static int __devexit adf4350_remove(struct spi_device *spi) | 443 | static int adf4350_remove(struct spi_device *spi) |
444 | { | 444 | { |
445 | struct iio_dev *indio_dev = spi_get_drvdata(spi); | 445 | struct iio_dev *indio_dev = spi_get_drvdata(spi); |
446 | struct adf4350_state *st = iio_priv(indio_dev); | 446 | struct adf4350_state *st = iio_priv(indio_dev); |
@@ -476,7 +476,7 @@ static struct spi_driver adf4350_driver = { | |||
476 | .owner = THIS_MODULE, | 476 | .owner = THIS_MODULE, |
477 | }, | 477 | }, |
478 | .probe = adf4350_probe, | 478 | .probe = adf4350_probe, |
479 | .remove = __devexit_p(adf4350_remove), | 479 | .remove = adf4350_remove, |
480 | .id_table = adf4350_id, | 480 | .id_table = adf4350_id, |
481 | }; | 481 | }; |
482 | module_spi_driver(adf4350_driver); | 482 | module_spi_driver(adf4350_driver); |
diff --git a/drivers/iio/gyro/hid-sensor-gyro-3d.c b/drivers/iio/gyro/hid-sensor-gyro-3d.c index 1a64f88d1e89..fcfc83a9f861 100644 --- a/drivers/iio/gyro/hid-sensor-gyro-3d.c +++ b/drivers/iio/gyro/hid-sensor-gyro-3d.c | |||
@@ -277,7 +277,7 @@ static int gyro_3d_parse_report(struct platform_device *pdev, | |||
277 | } | 277 | } |
278 | 278 | ||
279 | /* Function to initialize the processing for usage id */ | 279 | /* Function to initialize the processing for usage id */ |
280 | static int __devinit hid_gyro_3d_probe(struct platform_device *pdev) | 280 | static int hid_gyro_3d_probe(struct platform_device *pdev) |
281 | { | 281 | { |
282 | int ret = 0; | 282 | int ret = 0; |
283 | static const char *name = "gyro_3d"; | 283 | static const char *name = "gyro_3d"; |
@@ -374,7 +374,7 @@ error_ret: | |||
374 | } | 374 | } |
375 | 375 | ||
376 | /* Function to deinitialize the processing for usage id */ | 376 | /* Function to deinitialize the processing for usage id */ |
377 | static int __devinit hid_gyro_3d_remove(struct platform_device *pdev) | 377 | static int hid_gyro_3d_remove(struct platform_device *pdev) |
378 | { | 378 | { |
379 | struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; | 379 | struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; |
380 | struct iio_dev *indio_dev = platform_get_drvdata(pdev); | 380 | struct iio_dev *indio_dev = platform_get_drvdata(pdev); |
diff --git a/drivers/iio/light/adjd_s311.c b/drivers/iio/light/adjd_s311.c index 36d210a06b28..d5b9d39d95b2 100644 --- a/drivers/iio/light/adjd_s311.c +++ b/drivers/iio/light/adjd_s311.c | |||
@@ -286,8 +286,8 @@ static const struct iio_info adjd_s311_info = { | |||
286 | .driver_module = THIS_MODULE, | 286 | .driver_module = THIS_MODULE, |
287 | }; | 287 | }; |
288 | 288 | ||
289 | static int __devinit adjd_s311_probe(struct i2c_client *client, | 289 | static int adjd_s311_probe(struct i2c_client *client, |
290 | const struct i2c_device_id *id) | 290 | const struct i2c_device_id *id) |
291 | { | 291 | { |
292 | struct adjd_s311_data *data; | 292 | struct adjd_s311_data *data; |
293 | struct iio_dev *indio_dev; | 293 | struct iio_dev *indio_dev; |
@@ -330,7 +330,7 @@ exit: | |||
330 | return err; | 330 | return err; |
331 | } | 331 | } |
332 | 332 | ||
333 | static int __devexit adjd_s311_remove(struct i2c_client *client) | 333 | static int adjd_s311_remove(struct i2c_client *client) |
334 | { | 334 | { |
335 | struct iio_dev *indio_dev = i2c_get_clientdata(client); | 335 | struct iio_dev *indio_dev = i2c_get_clientdata(client); |
336 | struct adjd_s311_data *data = iio_priv(indio_dev); | 336 | struct adjd_s311_data *data = iio_priv(indio_dev); |
@@ -354,7 +354,7 @@ static struct i2c_driver adjd_s311_driver = { | |||
354 | .name = ADJD_S311_DRV_NAME, | 354 | .name = ADJD_S311_DRV_NAME, |
355 | }, | 355 | }, |
356 | .probe = adjd_s311_probe, | 356 | .probe = adjd_s311_probe, |
357 | .remove = __devexit_p(adjd_s311_remove), | 357 | .remove = adjd_s311_remove, |
358 | .id_table = adjd_s311_id, | 358 | .id_table = adjd_s311_id, |
359 | }; | 359 | }; |
360 | module_i2c_driver(adjd_s311_driver); | 360 | module_i2c_driver(adjd_s311_driver); |
diff --git a/drivers/iio/light/hid-sensor-als.c b/drivers/iio/light/hid-sensor-als.c index 6ab987a13c79..3d7e8c9b4beb 100644 --- a/drivers/iio/light/hid-sensor-als.c +++ b/drivers/iio/light/hid-sensor-als.c | |||
@@ -244,7 +244,7 @@ static int als_parse_report(struct platform_device *pdev, | |||
244 | } | 244 | } |
245 | 245 | ||
246 | /* Function to initialize the processing for usage id */ | 246 | /* Function to initialize the processing for usage id */ |
247 | static int __devinit hid_als_probe(struct platform_device *pdev) | 247 | static int hid_als_probe(struct platform_device *pdev) |
248 | { | 248 | { |
249 | int ret = 0; | 249 | int ret = 0; |
250 | static const char *name = "als"; | 250 | static const char *name = "als"; |
@@ -340,7 +340,7 @@ error_ret: | |||
340 | } | 340 | } |
341 | 341 | ||
342 | /* Function to deinitialize the processing for usage id */ | 342 | /* Function to deinitialize the processing for usage id */ |
343 | static int __devinit hid_als_remove(struct platform_device *pdev) | 343 | static int hid_als_remove(struct platform_device *pdev) |
344 | { | 344 | { |
345 | struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; | 345 | struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; |
346 | struct iio_dev *indio_dev = platform_get_drvdata(pdev); | 346 | struct iio_dev *indio_dev = platform_get_drvdata(pdev); |
diff --git a/drivers/iio/light/lm3533-als.c b/drivers/iio/light/lm3533-als.c index e45712a921ce..7503012ce933 100644 --- a/drivers/iio/light/lm3533-als.c +++ b/drivers/iio/light/lm3533-als.c | |||
@@ -718,8 +718,7 @@ static struct attribute_group lm3533_als_attribute_group = { | |||
718 | .attrs = lm3533_als_attributes | 718 | .attrs = lm3533_als_attributes |
719 | }; | 719 | }; |
720 | 720 | ||
721 | static int __devinit lm3533_als_set_input_mode(struct lm3533_als *als, | 721 | static int lm3533_als_set_input_mode(struct lm3533_als *als, bool pwm_mode) |
722 | bool pwm_mode) | ||
723 | { | 722 | { |
724 | u8 mask = LM3533_ALS_INPUT_MODE_MASK; | 723 | u8 mask = LM3533_ALS_INPUT_MODE_MASK; |
725 | u8 val; | 724 | u8 val; |
@@ -740,7 +739,7 @@ static int __devinit lm3533_als_set_input_mode(struct lm3533_als *als, | |||
740 | return 0; | 739 | return 0; |
741 | } | 740 | } |
742 | 741 | ||
743 | static int __devinit lm3533_als_set_resistor(struct lm3533_als *als, u8 val) | 742 | static int lm3533_als_set_resistor(struct lm3533_als *als, u8 val) |
744 | { | 743 | { |
745 | int ret; | 744 | int ret; |
746 | 745 | ||
@@ -756,8 +755,8 @@ static int __devinit lm3533_als_set_resistor(struct lm3533_als *als, u8 val) | |||
756 | return 0; | 755 | return 0; |
757 | } | 756 | } |
758 | 757 | ||
759 | static int __devinit lm3533_als_setup(struct lm3533_als *als, | 758 | static int lm3533_als_setup(struct lm3533_als *als, |
760 | struct lm3533_als_platform_data *pdata) | 759 | struct lm3533_als_platform_data *pdata) |
761 | { | 760 | { |
762 | int ret; | 761 | int ret; |
763 | 762 | ||
@@ -775,7 +774,7 @@ static int __devinit lm3533_als_setup(struct lm3533_als *als, | |||
775 | return 0; | 774 | return 0; |
776 | } | 775 | } |
777 | 776 | ||
778 | static int __devinit lm3533_als_setup_irq(struct lm3533_als *als, void *dev) | 777 | static int lm3533_als_setup_irq(struct lm3533_als *als, void *dev) |
779 | { | 778 | { |
780 | u8 mask = LM3533_ALS_INT_ENABLE_MASK; | 779 | u8 mask = LM3533_ALS_INT_ENABLE_MASK; |
781 | int ret; | 780 | int ret; |
@@ -799,7 +798,7 @@ static int __devinit lm3533_als_setup_irq(struct lm3533_als *als, void *dev) | |||
799 | return 0; | 798 | return 0; |
800 | } | 799 | } |
801 | 800 | ||
802 | static int __devinit lm3533_als_enable(struct lm3533_als *als) | 801 | static int lm3533_als_enable(struct lm3533_als *als) |
803 | { | 802 | { |
804 | u8 mask = LM3533_ALS_ENABLE_MASK; | 803 | u8 mask = LM3533_ALS_ENABLE_MASK; |
805 | int ret; | 804 | int ret; |
@@ -830,7 +829,7 @@ static const struct iio_info lm3533_als_info = { | |||
830 | .read_raw = &lm3533_als_read_raw, | 829 | .read_raw = &lm3533_als_read_raw, |
831 | }; | 830 | }; |
832 | 831 | ||
833 | static int __devinit lm3533_als_probe(struct platform_device *pdev) | 832 | static int lm3533_als_probe(struct platform_device *pdev) |
834 | { | 833 | { |
835 | struct lm3533 *lm3533; | 834 | struct lm3533 *lm3533; |
836 | struct lm3533_als_platform_data *pdata; | 835 | struct lm3533_als_platform_data *pdata; |
@@ -901,7 +900,7 @@ err_free_dev: | |||
901 | return ret; | 900 | return ret; |
902 | } | 901 | } |
903 | 902 | ||
904 | static int __devexit lm3533_als_remove(struct platform_device *pdev) | 903 | static int lm3533_als_remove(struct platform_device *pdev) |
905 | { | 904 | { |
906 | struct iio_dev *indio_dev = platform_get_drvdata(pdev); | 905 | struct iio_dev *indio_dev = platform_get_drvdata(pdev); |
907 | struct lm3533_als *als = iio_priv(indio_dev); | 906 | struct lm3533_als *als = iio_priv(indio_dev); |
@@ -922,7 +921,7 @@ static struct platform_driver lm3533_als_driver = { | |||
922 | .owner = THIS_MODULE, | 921 | .owner = THIS_MODULE, |
923 | }, | 922 | }, |
924 | .probe = lm3533_als_probe, | 923 | .probe = lm3533_als_probe, |
925 | .remove = __devexit_p(lm3533_als_remove), | 924 | .remove = lm3533_als_remove, |
926 | }; | 925 | }; |
927 | module_platform_driver(lm3533_als_driver); | 926 | module_platform_driver(lm3533_als_driver); |
928 | 927 | ||
diff --git a/drivers/iio/light/vcnl4000.c b/drivers/iio/light/vcnl4000.c index e49cb9784a6f..2aa748fbdc0e 100644 --- a/drivers/iio/light/vcnl4000.c +++ b/drivers/iio/light/vcnl4000.c | |||
@@ -150,8 +150,8 @@ static const struct iio_info vcnl4000_info = { | |||
150 | .driver_module = THIS_MODULE, | 150 | .driver_module = THIS_MODULE, |
151 | }; | 151 | }; |
152 | 152 | ||
153 | static int __devinit vcnl4000_probe(struct i2c_client *client, | 153 | static int vcnl4000_probe(struct i2c_client *client, |
154 | const struct i2c_device_id *id) | 154 | const struct i2c_device_id *id) |
155 | { | 155 | { |
156 | struct vcnl4000_data *data; | 156 | struct vcnl4000_data *data; |
157 | struct iio_dev *indio_dev; | 157 | struct iio_dev *indio_dev; |
@@ -190,7 +190,7 @@ error_free_dev: | |||
190 | return ret; | 190 | return ret; |
191 | } | 191 | } |
192 | 192 | ||
193 | static int __devexit vcnl4000_remove(struct i2c_client *client) | 193 | static int vcnl4000_remove(struct i2c_client *client) |
194 | { | 194 | { |
195 | struct iio_dev *indio_dev = i2c_get_clientdata(client); | 195 | struct iio_dev *indio_dev = i2c_get_clientdata(client); |
196 | 196 | ||
@@ -206,7 +206,7 @@ static struct i2c_driver vcnl4000_driver = { | |||
206 | .owner = THIS_MODULE, | 206 | .owner = THIS_MODULE, |
207 | }, | 207 | }, |
208 | .probe = vcnl4000_probe, | 208 | .probe = vcnl4000_probe, |
209 | .remove = __devexit_p(vcnl4000_remove), | 209 | .remove = vcnl4000_remove, |
210 | .id_table = vcnl4000_id, | 210 | .id_table = vcnl4000_id, |
211 | }; | 211 | }; |
212 | 212 | ||
diff --git a/drivers/iio/magnetometer/hid-sensor-magn-3d.c b/drivers/iio/magnetometer/hid-sensor-magn-3d.c index 28026e2ab06b..d8d01265220b 100644 --- a/drivers/iio/magnetometer/hid-sensor-magn-3d.c +++ b/drivers/iio/magnetometer/hid-sensor-magn-3d.c | |||
@@ -278,7 +278,7 @@ static int magn_3d_parse_report(struct platform_device *pdev, | |||
278 | } | 278 | } |
279 | 279 | ||
280 | /* Function to initialize the processing for usage id */ | 280 | /* Function to initialize the processing for usage id */ |
281 | static int __devinit hid_magn_3d_probe(struct platform_device *pdev) | 281 | static int hid_magn_3d_probe(struct platform_device *pdev) |
282 | { | 282 | { |
283 | int ret = 0; | 283 | int ret = 0; |
284 | static char *name = "magn_3d"; | 284 | static char *name = "magn_3d"; |
@@ -375,7 +375,7 @@ error_ret: | |||
375 | } | 375 | } |
376 | 376 | ||
377 | /* Function to deinitialize the processing for usage id */ | 377 | /* Function to deinitialize the processing for usage id */ |
378 | static int __devinit hid_magn_3d_remove(struct platform_device *pdev) | 378 | static int hid_magn_3d_remove(struct platform_device *pdev) |
379 | { | 379 | { |
380 | struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; | 380 | struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; |
381 | struct iio_dev *indio_dev = platform_get_drvdata(pdev); | 381 | struct iio_dev *indio_dev = platform_get_drvdata(pdev); |