diff options
author | Himangi Saraogi | 2014-01-07 20:44:00 +0100 |
---|---|---|
committer | Jonathan Cameron | 2014-07-07 19:12:02 +0200 |
commit | 744966d6dc7d9945d8b9cc511d98a0ec5aeee9ed (patch) | |
tree | b9e09c0b0a1d4115c4bdc77a2e4264fced266b13 /drivers/staging/iio/trigger/iio-trig-bfin-timer.c | |
parent | staging: iio: remove duplicate case labels (diff) | |
download | kernel-qcow2-linux-744966d6dc7d9945d8b9cc511d98a0ec5aeee9ed.tar.gz kernel-qcow2-linux-744966d6dc7d9945d8b9cc511d98a0ec5aeee9ed.tar.xz kernel-qcow2-linux-744966d6dc7d9945d8b9cc511d98a0ec5aeee9ed.zip |
staging: iio: Introduce the use of devm_ioremap_resource
This patch introduces the use of devm_ioremap_resource. It does away
with call to request_mem_region and the error checking on
platform_get_resource. Also, the calls to free the allocated resources
like release_mem_region and iounmap are done away with. The ret variable
in the probe function is also eliminated. Also, a bug is fixed as the
goto in the error handling of request_mem_region should not have
called release_mem_region which releases a resource that has not been
allocated.
Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/staging/iio/trigger/iio-trig-bfin-timer.c')
0 files changed, 0 insertions, 0 deletions