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

phy: marvell: phy-mvebu-cp110-comphy: 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/20230705090126.26854-1-frank.li@vivo.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Yangtao Li and committed by
Vinod Koul
14626246 06c2afb8

+1 -2
+1 -2
drivers/phy/marvell/phy-mvebu-cp110-comphy.c
··· 1011 1011 "marvell,system-controller"); 1012 1012 if (IS_ERR(priv->regmap)) 1013 1013 return PTR_ERR(priv->regmap); 1014 - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 1015 - priv->base = devm_ioremap_resource(&pdev->dev, res); 1014 + priv->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); 1016 1015 if (IS_ERR(priv->base)) 1017 1016 return PTR_ERR(priv->base); 1018 1017