]> git.baikalelectronics.ru Git - kernel.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)
commitef5de0d042a6a0b493db7eddffad559ab9ead912
tree0f464698c427cca55d973d2c432f996fb8b45f60
parent9bd1f03c9f9e8967615906e69f0da2754307328e
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: e31c3074928f ("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