Commit 6c9111bc authored by Chunfeng Yun's avatar Chunfeng Yun Committed by Vinod Koul
Browse files

phy: lantiq: convert to devm_platform_ioremap_resource

parent 0b7c4c88
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -402,7 +402,6 @@ static int ltq_vrx200_pcie_phy_probe(struct platform_device *pdev)
	struct ltq_vrx200_pcie_phy_priv *priv;
	struct ltq_vrx200_pcie_phy_priv *priv;
	struct device *dev = &pdev->dev;
	struct device *dev = &pdev->dev;
	struct phy_provider *provider;
	struct phy_provider *provider;
	struct resource *res;
	void __iomem *base;
	void __iomem *base;
	int ret;
	int ret;


@@ -410,8 +409,7 @@ static int ltq_vrx200_pcie_phy_probe(struct platform_device *pdev)
	if (!priv)
	if (!priv)
		return -ENOMEM;
		return -ENOMEM;


	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	base = devm_platform_ioremap_resource(pdev, 0);
	base = devm_ioremap_resource(dev, res);
	if (IS_ERR(base))
	if (IS_ERR(base))
		return PTR_ERR(base);
		return PTR_ERR(base);