From 4f2c1b02b9be473e7c458fc6bc7dc745203017f4 Mon Sep 17 00:00:00 2001 From: Jonathan Cameron Date: Wed, 18 May 2011 14:41:09 +0100 Subject: [PATCH] staging:iio:adc:ad7152 remove unregister of interrupt line. a) This interface is going away b) There is no matching register call so looks like a cut and paste error Trivial sparse warning fix. Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/staging/iio/adc/ad7152.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/staging/iio/adc/ad7152.c b/drivers/staging/iio/adc/ad7152.c index 163c30767b06..25715f08055c 100644 --- a/drivers/staging/iio/adc/ad7152.c +++ b/drivers/staging/iio/adc/ad7152.c @@ -7,15 +7,11 @@ */ #include -#include -#include #include #include #include #include -#include #include -#include #include "../iio.h" #include "../sysfs.h" @@ -72,7 +68,8 @@ struct ad7152_conversion_mode { u8 reg_cfg; }; -struct ad7152_conversion_mode ad7152_conv_mode_table[AD7152_MAX_CONV_MODE] = { +static struct ad7152_conversion_mode +ad7152_conv_mode_table[AD7152_MAX_CONV_MODE] = { { "idle", 0 }, { "continuous-conversion", 1 }, { "single-conversion", 2 }, @@ -567,8 +564,6 @@ static int __devexit ad7152_remove(struct i2c_client *client) struct ad7152_chip_info *chip = i2c_get_clientdata(client); struct iio_dev *indio_dev = chip->indio_dev; - if (client->irq && gpio_is_valid(irq_to_gpio(client->irq)) > 0) - iio_unregister_interrupt_line(indio_dev, 0); iio_device_unregister(indio_dev); kfree(chip); -- 2.30.2