]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit27853591c62db21faec18e8d05cbd19b94036cf3
tree378c3ad50f1978e7d76aa4684d464f59efff7225
parente35f6642ff4811081db7ca9d35739f2f04af848a
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