hwspinlock: sprd: Change to use devm_platform_ioremap_resource()
authorBaolin Wang <baolin.wang@linaro.org>
Fri, 27 Sep 2019 07:10:44 +0000 (15:10 +0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sat, 5 Oct 2019 04:07:19 +0000 (21:07 -0700)
commit74cfa956cbead238cf6c5307be461a087c569c97
tree894b0cf2edcd57a2e0f6ef9abf3dfa97b4497ec9
parentacc98c1f2a1b4503588d3b1eb35db9cb76abdd89
hwspinlock: sprd: 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.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/hwspinlock/sprd_hwspinlock.c