summaryrefslogtreecommitdiff
path: root/drivers/staging/iio/dac/ad5791.c
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@cam.ac.uk>2011-09-02 16:14:40 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2011-09-06 23:02:01 (GMT)
commit26d25ae3f0d8ffe350aacc75b71198d6b35bd1f4 (patch)
tree8b7867c7cfb8202e5313c462256ebf7e9932a1f1 /drivers/staging/iio/dac/ad5791.c
parent330c6c57e6284a755d7e8a031b3c917571ee6dc3 (diff)
downloadlinux-fsl-qoriq-26d25ae3f0d8ffe350aacc75b71198d6b35bd1f4.tar.xz
staging:iio: rework of attribute registration.
This set also includes quite a number of bug fixes of particularly remove functions. Necessary due to issue pointed out in Bart Van Assche's patch: docs/driver-model: Document device.groups V2: Rebase due to patch reordering. V3: Pull various error fixes and cleanups out into their own patches. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Michael Hennerich <Michael.Hennerich@analog.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/dac/ad5791.c')
-rw-r--r--drivers/staging/iio/dac/ad5791.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/iio/dac/ad5791.c b/drivers/staging/iio/dac/ad5791.c
index 5a5de97..74f5406 100644
--- a/drivers/staging/iio/dac/ad5791.c
+++ b/drivers/staging/iio/dac/ad5791.c
@@ -396,6 +396,8 @@ static int __devexit ad5791_remove(struct spi_device *spi)
}
iio_device_unregister(indio_dev);
+ iio_device_unregister(indio_dev);
+
return 0;
}