diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2017-03-08 03:22:42 -0500 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2017-03-09 04:59:57 -0500 |
commit | 11d94e026b962eee6e1fbc4237f2cbfbec839067 (patch) | |
tree | 8fff66dcd6690134411ccb580e0b538d42387534 | |
parent | 677941a304b72620f519e542fb7c370424dcc297 (diff) |
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: cf0adb8e281b ("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>
-rw-r--r-- | drivers/phy/phy-exynos-pcie.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/phy/phy-exynos-pcie.c b/drivers/phy/phy-exynos-pcie.c index 4f60b83641d5..60baf25d98e2 100644 --- a/drivers/phy/phy-exynos-pcie.c +++ b/drivers/phy/phy-exynos-pcie.c | |||
@@ -254,8 +254,8 @@ static int exynos_pcie_phy_probe(struct platform_device *pdev) | |||
254 | 254 | ||
255 | res = platform_get_resource(pdev, IORESOURCE_MEM, 1); | 255 | res = platform_get_resource(pdev, IORESOURCE_MEM, 1); |
256 | exynos_phy->blk_base = devm_ioremap_resource(dev, res); | 256 | exynos_phy->blk_base = devm_ioremap_resource(dev, res); |
257 | if (IS_ERR(exynos_phy->phy_base)) | 257 | if (IS_ERR(exynos_phy->blk_base)) |
258 | return PTR_ERR(exynos_phy->phy_base); | 258 | return PTR_ERR(exynos_phy->blk_base); |
259 | 259 | ||
260 | exynos_phy->drv_data = drv_data; | 260 | exynos_phy->drv_data = drv_data; |
261 | 261 | ||