iio: Remove debugfs entries in iio_device_unregister()
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 21 Sep 2013 15:21:00 +0000 (16:21 +0100)
committerJonathan Cameron <jic23@kernel.org>
Mon, 30 Sep 2013 20:46:10 +0000 (21:46 +0100)
commitbc4c9612922524ce3eba64c5e7d6323f8e174ca1
tree43297274b2f0ba67dccfe9bd17395275ef13c783
parentd3789c3ee2e2b7e8c9b6043e9e8715d6d1e80299
iio: Remove debugfs entries in iio_device_unregister()

Remove the the debugfs entries in iio_device_unregister(). Otherwise the debugfs
entries might still be accessible even though the device used in the debugfs
callback has already been freed.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-core.c