hwspinlock: omap: Change to use devm_platform_ioremap_resource()
authorBaolin Wang <baolin.wang7@gmail.com>
Wed, 8 Jan 2020 03:13:59 +0000 (11:13 +0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 22 Jan 2020 00:11:11 +0000 (16:11 -0800)
commitbf2740068a87e258ccc695d366c8a2c05b46de71
tree378c3ad50f1978e7d76aa4684d464f59efff7225
parented0611a604297a642c3fbec86d3482d580b4f764
hwspinlock: omap: Change to use devm_platform_ioremap_resource()

Use the new helper that wraps the calls to platform_get_resource()
and devm_ioremap_resource() together, which can simpify the code.
Meanwhile renaming the error label to make more sense after removing
iounmap().

Signed-off-by: Baolin Wang <baolin.wang7@gmail.com>
Link: https://lore.kernel.org/r/6c09c5034a7e68fdfc22d2cb5daa375bccb33a66.1578453062.git.baolin.wang7@gmail.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/hwspinlock/omap_hwspinlock.c