]> git.karo-electronics.de Git - linux-beck.git/commit
iio: stx104: Unregister IIO device on remove callback
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Tue, 19 Jul 2016 16:25:00 +0000 (12:25 -0400)
committerJonathan Cameron <jic23@kernel.org>
Mon, 15 Aug 2016 14:39:32 +0000 (15:39 +0100)
commit45e98152850c36560484f3fa3bb857a4bfe1a419
tree0f464698c427cca55d973d2c432f996fb8b45f60
parentf8adf645db03345af2d9a8b6095b02327ea50885
iio: stx104: Unregister IIO device on remove callback

The devm_iio_device_register function should not be used if custom
operations must be performed in the remove callback. This patch replaces
the dem_iio_device_register call with a iio_device_register call and
respective iio_device_unregister call in the remove callback.

Fixes: 765550e4d98d ("iio: stx104: Add GPIO support for the Apex Embedded Systems STX104")
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/dac/stx104.c