thermal: tsens: switch from of_iomap() to devm_ioremap_resource()
authorAmit Kucheria <amit.kucheria@linaro.org>
Thu, 26 Jul 2018 10:33:09 +0000 (16:03 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Fri, 27 Jul 2018 22:15:57 +0000 (15:15 -0700)
commitfaa590baf8dfe5ad877e062f18de4419e4d174f7
treeb646d610f781095223ad21fb322c4acb5f7b0da6
parente0fe01426c50f54d06b6ff69de2be536ec0a3256
thermal: tsens: switch from of_iomap() to devm_ioremap_resource()

devm_ioremap_resources() automatically requests resources (so that the I/O
region shows up in /proc/iomem) and devm_ wrappers do better error handling
and unmapping of the I/O region when needed.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/qcom/tsens-common.c