diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-21 16:21:43 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-03 18:57:03 -0500 |
commit | fc52692c49969ec72595766929b9f54ac402da34 (patch) | |
tree | 37575c3db7fdeb7bfcd93e10cd4ccef01af5d3f0 /drivers/iio/dac/ad5446.c | |
parent | fe31edc8a3b6081f3580c9ae4c5c61103f3412a5 (diff) |
Drivers: iio: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
markings need to be removed.
This change removes the use of __devinit, __devexit_p, and __devexit
from these drivers.
Based on patches originally written by Bill Pemberton, but redone by me
in order to handle some of the coding style issues better, by hand.
Cc: Bill Pemberton <wfp5p@virginia.edu>
Cc: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/dac/ad5446.c')
-rw-r--r-- | drivers/iio/dac/ad5446.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/iio/dac/ad5446.c b/drivers/iio/dac/ad5446.c index 3310cbbd41e7..29f653dab2f7 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; |
@@ -461,7 +461,7 @@ static const struct spi_device_id ad5446_spi_ids[] = { | |||
461 | }; | 461 | }; |
462 | MODULE_DEVICE_TABLE(spi, ad5446_spi_ids); | 462 | MODULE_DEVICE_TABLE(spi, ad5446_spi_ids); |
463 | 463 | ||
464 | static int __devinit ad5446_spi_probe(struct spi_device *spi) | 464 | static int ad5446_spi_probe(struct spi_device *spi) |
465 | { | 465 | { |
466 | const struct spi_device_id *id = spi_get_device_id(spi); | 466 | const struct spi_device_id *id = spi_get_device_id(spi); |
467 | 467 | ||
@@ -469,7 +469,7 @@ static int __devinit ad5446_spi_probe(struct spi_device *spi) | |||
469 | &ad5446_spi_chip_info[id->driver_data]); | 469 | &ad5446_spi_chip_info[id->driver_data]); |
470 | } | 470 | } |
471 | 471 | ||
472 | static int __devexit ad5446_spi_remove(struct spi_device *spi) | 472 | static int ad5446_spi_remove(struct spi_device *spi) |
473 | { | 473 | { |
474 | return ad5446_remove(&spi->dev); | 474 | return ad5446_remove(&spi->dev); |
475 | } | 475 | } |
@@ -480,7 +480,7 @@ static struct spi_driver ad5446_spi_driver = { | |||
480 | .owner = THIS_MODULE, | 480 | .owner = THIS_MODULE, |
481 | }, | 481 | }, |
482 | .probe = ad5446_spi_probe, | 482 | .probe = ad5446_spi_probe, |
483 | .remove = __devexit_p(ad5446_spi_remove), | 483 | .remove = ad5446_spi_remove, |
484 | .id_table = ad5446_spi_ids, | 484 | .id_table = ad5446_spi_ids, |
485 | }; | 485 | }; |
486 | 486 | ||
@@ -539,14 +539,14 @@ static const struct ad5446_chip_info ad5446_i2c_chip_info[] = { | |||
539 | }, | 539 | }, |
540 | }; | 540 | }; |
541 | 541 | ||
542 | static int __devinit ad5446_i2c_probe(struct i2c_client *i2c, | 542 | static int ad5446_i2c_probe(struct i2c_client *i2c, |
543 | const struct i2c_device_id *id) | 543 | const struct i2c_device_id *id) |
544 | { | 544 | { |
545 | return ad5446_probe(&i2c->dev, id->name, | 545 | return ad5446_probe(&i2c->dev, id->name, |
546 | &ad5446_i2c_chip_info[id->driver_data]); | 546 | &ad5446_i2c_chip_info[id->driver_data]); |
547 | } | 547 | } |
548 | 548 | ||
549 | static int __devexit ad5446_i2c_remove(struct i2c_client *i2c) | 549 | static int ad5446_i2c_remove(struct i2c_client *i2c) |
550 | { | 550 | { |
551 | return ad5446_remove(&i2c->dev); | 551 | return ad5446_remove(&i2c->dev); |
552 | } | 552 | } |
@@ -568,7 +568,7 @@ static struct i2c_driver ad5446_i2c_driver = { | |||
568 | .owner = THIS_MODULE, | 568 | .owner = THIS_MODULE, |
569 | }, | 569 | }, |
570 | .probe = ad5446_i2c_probe, | 570 | .probe = ad5446_i2c_probe, |
571 | .remove = __devexit_p(ad5446_i2c_remove), | 571 | .remove = ad5446_i2c_remove, |
572 | .id_table = ad5446_i2c_ids, | 572 | .id_table = ad5446_i2c_ids, |
573 | }; | 573 | }; |
574 | 574 | ||