提交 11d94e02 编写于 作者: J Jaehoon Chung 提交者: Kishon Vijay Abraham I

phy: phy-exynos-pcie: fix the wrong error return

When it doesn't get the blk_base's resource, it was returned
the error about phy_base, not blk_base.
This patch is for fixing the wrong error return about blk_base.

Fixes: cf0adb8e ("phy: phy-exynos-pcie: Add support for Exynos PCIe PHY")
Signed-off-by: NJaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
上级 677941a3
......@@ -254,8 +254,8 @@ static int exynos_pcie_phy_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
exynos_phy->blk_base = devm_ioremap_resource(dev, res);
if (IS_ERR(exynos_phy->phy_base))
return PTR_ERR(exynos_phy->phy_base);
if (IS_ERR(exynos_phy->blk_base))
return PTR_ERR(exynos_phy->blk_base);
exynos_phy->drv_data = drv_data;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册