Skip to content

Commit

Permalink
phy: phy-exynos-pcie: fix the wrong error return
Browse files Browse the repository at this point in the history
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: cf0adb8 ("phy: phy-exynos-pcie: Add support for Exynos PCIe PHY")

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
  • Loading branch information
Jaehoon Chung authored and Kishon Vijay Abraham I committed Mar 9, 2017
1 parent 677941a commit 11d94e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/phy/phy-exynos-pcie.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 11d94e0

Please sign in to comment.