diff options
author | William Breathitt Gray <[email protected]> | 2016-07-19 12:25:00 -0400 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2016-08-15 15:39:32 +0100 |
commit | 45e98152850c36560484f3fa3bb857a4bfe1a419 (patch) | |
tree | 0f464698c427cca55d973d2c432f996fb8b45f60 /tools/perf/util/trace-event-scripting.c | |
parent | f8adf645db03345af2d9a8b6095b02327ea50885 (diff) |
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 <[email protected]>
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions