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

phy: lantiq: convert to devm_platform_ioremap_resource

Use devm_platform_ioremap_resource to simplify code

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/1604642930-29019-6-git-send-email-chunfeng.yun@mediatek.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Chunfeng Yun and committed by
Vinod Koul
6c9111bc 0b7c4c88

+1 -3
+1 -3
drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c
··· 402 402 struct ltq_vrx200_pcie_phy_priv *priv; 403 403 struct device *dev = &pdev->dev; 404 404 struct phy_provider *provider; 405 - struct resource *res; 406 405 void __iomem *base; 407 406 int ret; 408 407 ··· 409 410 if (!priv) 410 411 return -ENOMEM; 411 412 412 - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 413 - base = devm_ioremap_resource(dev, res); 413 + base = devm_platform_ioremap_resource(pdev, 0); 414 414 if (IS_ERR(base)) 415 415 return PTR_ERR(base); 416 416