hwspinlock: sirf: Change to use devm_platform_ioremap_resource()
authorBaolin Wang <baolin.wang7@gmail.com>
Wed, 8 Jan 2020 03:23:44 +0000 (11:23 +0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 22 Jan 2020 00:16:16 +0000 (16:16 -0800)
commit77d99a6a9df2ac3d1832b408123e48549d1e01fd
treefcba3092d79496dd6a88391be737ea56d8a8f012
parent42f291ebfdd83a5bf04254f6bdc169f6e5a4152b
hwspinlock: sirf: 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.wang7@gmail.com>
Link: https://lore.kernel.org/r/dfa043f317c609a6172468ac11598968dd751bce.1578453662.git.baolin.wang7@gmail.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/hwspinlock/sirf_hwspinlock.c