From: Jonathan Cameron Date: Wed, 18 May 2011 13:41:14 +0000 (+0100) Subject: staging:iio:adc:ad7314 remove unmatched unregister of event line. X-Git-Tag: firefly_0821_release~7613^2~1326^2~88 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6f3ca9e3d614b1b448800bbfa27d518fa11d3b77;p=firefly-linux-kernel-4.4.55.git staging:iio:adc:ad7314 remove unmatched unregister of event line. Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/iio/adc/ad7314.c b/drivers/staging/iio/adc/ad7314.c index dffbec13632a..bc34e299a026 100644 --- a/drivers/staging/iio/adc/ad7314.c +++ b/drivers/staging/iio/adc/ad7314.c @@ -6,16 +6,11 @@ * Licensed under the GPL-2 or later. */ -#include -#include -#include #include #include #include #include -#include #include -#include #include "../iio.h" #include "../sysfs.h" @@ -262,8 +257,6 @@ static int __devexit ad7314_remove(struct spi_device *spi_dev) struct iio_dev *indio_dev = chip->indio_dev; dev_set_drvdata(&spi_dev->dev, NULL); - if (spi_dev->irq) - iio_unregister_interrupt_line(indio_dev, 0); iio_device_unregister(indio_dev); iio_free_device(chip->indio_dev); kfree(chip);