From 6f3ca9e3d614b1b448800bbfa27d518fa11d3b77 Mon Sep 17 00:00:00 2001 From: Jonathan Cameron Date: Wed, 18 May 2011 14:41:14 +0100 Subject: [PATCH] staging:iio:adc:ad7314 remove unmatched unregister of event line. Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/staging/iio/adc/ad7314.c | 7 ------- 1 file changed, 7 deletions(-) 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); -- 2.30.2