linux/drivers/staging/iio
Amitoj Kaur Chawla 09b9da3399 staging: iio: adc: Replace of_iomap() with devm_ioremap_resource()
The adc driver uses of_iomap() which doesn't request the resource and
isn't device managed so error handling is needed. of_iomap() is mainly
used in cases where there is no driver or struct device so a switch to
devm_ functions is required.

This patch switches to use devm_ioremap_resource() instead which
automatically requests the resource and is freed when the driver
detaches.

Removed the error handling to unmap I/O registers i.e.
iounmap() in probe and remove functions of this driver and
consequently removed an unnecessary label.

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-03-11 22:09:09 -08:00
..
accel staging: iio: accel: Remove unnecessary else after goto in if block 2016-02-20 14:45:05 -08:00
adc staging: iio: adc: Replace of_iomap() with devm_ioremap_resource() 2016-03-11 22:09:09 -08:00
addac staging: iio: adt7316: remove useless initialization 2016-03-11 22:09:09 -08:00
cdc staging: iio: Remove parentheses on the right hand side of assignment 2016-02-11 19:37:15 -08:00
Documentation Staging: iio: Documentation: Remove unused sysfs attributes 2016-01-30 16:27:11 +00:00
frequency Staging: iio: frequency: use dev_get_platdata() 2015-12-02 18:42:06 +00:00
gyro spi: Updates for v4.4 2015-11-05 13:15:12 -08:00
impedance-analyzer Staging:iio:Remove exceptional & on function name 2016-02-06 18:07:04 +00:00
light staging: iio: light: tsl2x7x: remove useless initialization 2016-03-11 22:09:09 -08:00
meter staging: iio: ade7854: use devm_iio_device_register 2016-03-11 22:09:09 -08:00
resolver staging: iio: resolver: fix comparison to NULL 2016-02-20 14:46:35 -08:00
trigger staging:iio: Remove periodic RTC trigger driver 2016-02-27 17:18:38 +00:00
Kconfig iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
Makefile iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
ring_hw.h staging: iio: Add #include guards to header files 2014-09-28 22:19:04 -04:00
TODO staging:iio: Remove periodic RTC trigger driver 2016-02-27 17:18:38 +00:00