OSDN Git Service

spi: sprd: Use devm_platform_get_and_ioremap_resource()
authorYang Li <yang.lee@linux.alibaba.com>
Mon, 27 Mar 2023 06:05:16 +0000 (14:05 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 27 Mar 2023 11:42:35 +0000 (12:42 +0100)
commit5936e77c202add2cc20c21cd4486ace1a362bd43
tree8655a2582d17f9e849f2944ec773679cff6f78b5
parent8499d4b5970f5fd135ee8860075768562a5efe70
spi: sprd: Use devm_platform_get_and_ioremap_resource()

According to commit 890cc39a8799 ("drivers: provide
devm_platform_get_and_ioremap_resource()"), convert
platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.

Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230327060516.93509-2-yang.lee@linux.alibaba.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sprd.c