diff options
author | William Breathitt Gray | 2017-01-24 21:26:17 +0100 |
---|---|---|
committer | Jonathan Cameron | 2017-01-28 13:44:05 +0100 |
commit | b2d226caecfc2dbf85b2abd2814b42627c5dde0a (patch) | |
tree | 6fe5e8c114df4446a71f54f7091dd64f3945ae9a /drivers/iio/pressure | |
parent | Documentation: dt: iio: imu: st_lsm6dsx: add st,drdy-int-pin property (diff) | |
download | kernel-qcow2-linux-b2d226caecfc2dbf85b2abd2814b42627c5dde0a.tar.gz kernel-qcow2-linux-b2d226caecfc2dbf85b2abd2814b42627c5dde0a.tar.xz kernel-qcow2-linux-b2d226caecfc2dbf85b2abd2814b42627c5dde0a.zip |
iio: stx104: Utilize devm_ functions in driver probe callback
The devm_ resource manager functions allow memory to be automatically
released when a device is unbound. This patch takes advantage of the
resource manager functions and replaces the gpiochip_add_data call and
iio_device_register call with the devm_gpiochip_add_data call and
devm_iio_device_register call respectively. In addition, the
stx104_remove function has been removed as no longer necessary due to
the use of the relevant devm_ resource manager functions.
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/pressure')
0 files changed, 0 insertions, 0 deletions