diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2012-05-11 15:12:29 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-14 13:26:44 -0700 |
commit | 5d4172cd63bd7a70007ce9d4d1fb48953323c328 (patch) | |
tree | 7af4c68e98385f3977a9b21deccfb77f5458bdcc /drivers/staging/iio | |
parent | 7cb2e629a240d3b7cc35d2d144149591e1cfa8dd (diff) |
staging:iio:dummy: Remove outdated comment
iio_device_free has to be called regardless of whether the device has been
registered or not when freeing it.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/iio')
-rw-r--r-- | drivers/staging/iio/iio_simple_dummy.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/iio/iio_simple_dummy.c b/drivers/staging/iio/iio_simple_dummy.c index 3b4513cf5ab9..310411911ed7 100644 --- a/drivers/staging/iio/iio_simple_dummy.c +++ b/drivers/staging/iio/iio_simple_dummy.c @@ -470,8 +470,6 @@ error_unconfigure_buffer: error_unregister_events: iio_simple_dummy_events_unregister(indio_dev); error_free_device: - /* Note free device should only be called, before registration - * has succeeded. */ iio_device_free(indio_dev); error_ret: return ret; |