aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/ad7887.c
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/adc/ad7887.c
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/adc/ad7887.c')
-rw-r--r--drivers/iio/adc/ad7887.c6
1 files changed, 3 insertions, 3 deletions
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
236static int __devinit ad7887_probe(struct spi_device *spi) 236static 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
343static int __devexit ad7887_remove(struct spi_device *spi) 343static 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};
374module_spi_driver(ad7887_driver); 374module_spi_driver(ad7887_driver);