mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 00:43:12 +00:00
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: 765550e4d9 ("iio: stx104: Add GPIO support for the Apex Embedded Systems STX104")
Signed-off-by: William Breathitt Gray <[email protected]>
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>