aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/frequency
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-21 16:21:43 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-03 18:57:03 -0500
commitfc52692c49969ec72595766929b9f54ac402da34 (patch)
tree37575c3db7fdeb7bfcd93e10cd4ccef01af5d3f0 /drivers/iio/frequency
parentfe31edc8a3b6081f3580c9ae4c5c61103f3412a5 (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/frequency')
-rw-r--r--drivers/iio/frequency/ad9523.c6
-rw-r--r--drivers/iio/frequency/adf4350.c6
2 files changed, 6 insertions, 6 deletions
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
962static int __devinit ad9523_probe(struct spi_device *spi) 962static 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
1023static int __devexit ad9523_remove(struct spi_device *spi) 1023static 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};
1055module_spi_driver(ad9523_driver); 1055module_spi_driver(ad9523_driver);
diff --git a/drivers/iio/frequency/adf4350.c b/drivers/iio/frequency/adf4350.c
index e35bb8f6fe75..e5033b4cfba0 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
358static int __devinit adf4350_probe(struct spi_device *spi) 358static 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
443static int __devexit adf4350_remove(struct spi_device *spi) 443static 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};
482module_spi_driver(adf4350_driver); 482module_spi_driver(adf4350_driver);