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.

mfd: exynos-lpass: Convert to devm_platform_ioremap_resource()

Use devm_platform_ioremap_resource() to simplify code.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
Link: https://lore.kernel.org/r/20230706113939.1178-4-frank.li@vivo.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Yangtao Li and committed by
Lee Jones
fed64817 07141cfe

+1 -3
+1 -3
drivers/mfd/exynos-lpass.c
··· 109 109 struct device *dev = &pdev->dev; 110 110 struct exynos_lpass *lpass; 111 111 void __iomem *base_top; 112 - struct resource *res; 113 112 114 113 lpass = devm_kzalloc(dev, sizeof(*lpass), GFP_KERNEL); 115 114 if (!lpass) 116 115 return -ENOMEM; 117 116 118 - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 119 - base_top = devm_ioremap_resource(dev, res); 117 + base_top = devm_platform_ioremap_resource(pdev, 0); 120 118 if (IS_ERR(base_top)) 121 119 return PTR_ERR(base_top); 122 120