aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/ad7791.c
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2013-01-14 13:20:02 -0500
committerOlof Johansson <olof@lixom.net>2013-01-14 13:20:02 -0500
commit8d84981e395850aab31c3f2ca7e2738e03f671d7 (patch)
tree933425fddb23d28be802277471df3fe3f6c2711d /drivers/iio/adc/ad7791.c
parent00c82d64405631967dca3890a9ce80ab35d04cc7 (diff)
parent77cc982f6a3b33a5aa058ad3b20cda8866db2948 (diff)
Merge branch 'clocksource/cleanup' into next/cleanup
Clockevent cleanup series from Shawn Guo. Resolved move/change conflict in mach-pxa/time.c due to the sys_timer cleanup. * clocksource/cleanup: clocksource: use clockevents_config_and_register() where possible ARM: use clockevents_config_and_register() where possible clockevents: export clockevents_config_and_register for module use + sync to Linux 3.8-rc3 Signed-off-by: Olof Johansson <olof@lixom.net> Conflicts: arch/arm/mach-pxa/time.c
Diffstat (limited to 'drivers/iio/adc/ad7791.c')
-rw-r--r--drivers/iio/adc/ad7791.c10
1 files changed, 5 insertions, 5 deletions
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
328static int __devinit ad7791_setup(struct ad7791_state *st, 328static 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
352static int __devinit ad7791_probe(struct spi_device *spi) 352static 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
421static int __devexit ad7791_remove(struct spi_device *spi) 421static 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};
456module_spi_driver(ad7791_driver); 456module_spi_driver(ad7791_driver);