Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

misc: atmel-ssc: Use 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: Yangtao Li <frank.li@vivo.com>
Link: https://lore.kernel.org/r/20230707024224.78907-1-frank.li@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Yangtao Li and committed by
Greg Kroah-Hartman
c6695aad 9ab54653

+1 -2
+1 -2
drivers/misc/atmel-ssc.c
··· 212 212 of_property_read_bool(np, "atmel,clk-from-rk-pin"); 213 213 } 214 214 215 - regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); 216 - ssc->regs = devm_ioremap_resource(&pdev->dev, regs); 215 + ssc->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &regs); 217 216 if (IS_ERR(ssc->regs)) 218 217 return PTR_ERR(ssc->regs); 219 218