staging:iio:dummy: Remove outdated comment
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- drivers/staging/iio/iio_simple_dummy.c | 2 -- 1 file changed, 2 deletions(-)
drivers/staging/iio/iio_simple_dummy.c +0 -2
@@ -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;
Signature · 1 line
1.7.10
Quoted 2 lines · Lars-Peter Clausen
iio_device_freehas to be called regardless of whether the device has been registered or not when freeing it.
Good spot,
Quoted 2 lines
Signed-off-by Lars-Peter Clausen<[email protected]>
Acked-by Jonathan Cameron <[email protected]>
Quoted 17 lines
--- drivers/staging/iio/iio_simple_dummy.c | 2 -- 1 file changed, 2 deletions(-)drivers/staging/iio/iio_simple_dummy.c +0
-2@@ -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;