aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/dac/ad5380.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/dac/ad5380.c')
-rw-r--r--drivers/iio/dac/ad5380.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/iio/dac/ad5380.c b/drivers/iio/dac/ad5380.c
index 14991ac55f26..6c7898c765d9 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
341static int __devinit ad5380_alloc_channels(struct iio_dev *indio_dev) 341static 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
364static int __devinit ad5380_probe(struct device *dev, struct regmap *regmap, 364static 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;
@@ -441,7 +441,7 @@ error_out:
441 return ret; 441 return ret;
442} 442}
443 443
444static int __devexit ad5380_remove(struct device *dev) 444static int ad5380_remove(struct device *dev)
445{ 445{
446 struct iio_dev *indio_dev = dev_get_drvdata(dev); 446 struct iio_dev *indio_dev = dev_get_drvdata(dev);
447 struct ad5380_state *st = iio_priv(indio_dev); 447 struct ad5380_state *st = iio_priv(indio_dev);
@@ -478,7 +478,7 @@ static const struct regmap_config ad5380_regmap_config = {
478 478
479#if IS_ENABLED(CONFIG_SPI_MASTER) 479#if IS_ENABLED(CONFIG_SPI_MASTER)
480 480
481static int __devinit ad5380_spi_probe(struct spi_device *spi) 481static int ad5380_spi_probe(struct spi_device *spi)
482{ 482{
483 const struct spi_device_id *id = spi_get_device_id(spi); 483 const struct spi_device_id *id = spi_get_device_id(spi);
484 struct regmap *regmap; 484 struct regmap *regmap;
@@ -491,7 +491,7 @@ static int __devinit ad5380_spi_probe(struct spi_device *spi)
491 return ad5380_probe(&spi->dev, regmap, id->driver_data, id->name); 491 return ad5380_probe(&spi->dev, regmap, id->driver_data, id->name);
492} 492}
493 493
494static int __devexit ad5380_spi_remove(struct spi_device *spi) 494static int ad5380_spi_remove(struct spi_device *spi)
495{ 495{
496 return ad5380_remove(&spi->dev); 496 return ad5380_remove(&spi->dev);
497} 497}
@@ -523,7 +523,7 @@ static struct spi_driver ad5380_spi_driver = {
523 .owner = THIS_MODULE, 523 .owner = THIS_MODULE,
524 }, 524 },
525 .probe = ad5380_spi_probe, 525 .probe = ad5380_spi_probe,
526 .remove = __devexit_p(ad5380_spi_remove), 526 .remove = ad5380_spi_remove,
527 .id_table = ad5380_spi_ids, 527 .id_table = ad5380_spi_ids,
528}; 528};
529 529
@@ -552,8 +552,8 @@ static inline void ad5380_spi_unregister_driver(void)
552 552
553#if IS_ENABLED(CONFIG_I2C) 553#if IS_ENABLED(CONFIG_I2C)
554 554
555static int __devinit ad5380_i2c_probe(struct i2c_client *i2c, 555static int ad5380_i2c_probe(struct i2c_client *i2c,
556 const struct i2c_device_id *id) 556 const struct i2c_device_id *id)
557{ 557{
558 struct regmap *regmap; 558 struct regmap *regmap;
559 559
@@ -565,7 +565,7 @@ static int __devinit ad5380_i2c_probe(struct i2c_client *i2c,
565 return ad5380_probe(&i2c->dev, regmap, id->driver_data, id->name); 565 return ad5380_probe(&i2c->dev, regmap, id->driver_data, id->name);
566} 566}
567 567
568static int __devexit ad5380_i2c_remove(struct i2c_client *i2c) 568static int ad5380_i2c_remove(struct i2c_client *i2c)
569{ 569{
570 return ad5380_remove(&i2c->dev); 570 return ad5380_remove(&i2c->dev);
571} 571}
@@ -597,7 +597,7 @@ static struct i2c_driver ad5380_i2c_driver = {
597 .owner = THIS_MODULE, 597 .owner = THIS_MODULE,
598 }, 598 },
599 .probe = ad5380_i2c_probe, 599 .probe = ad5380_i2c_probe,
600 .remove = __devexit_p(ad5380_i2c_remove), 600 .remove = ad5380_i2c_remove,
601 .id_table = ad5380_i2c_ids, 601 .id_table = ad5380_i2c_ids,
602}; 602};
603 603