diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2016-12-16 10:20:35 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2017-03-08 02:46:55 -0800 |
commit | 1e5231c842b0733d63c9ae7d4e22b8de8aa63d02 (patch) | |
tree | 63cf97c87083784475a425968e1f6f9754cbc0d8 | |
parent | 34694e550b2c6eacc4aef7ad0bc1d6225d96e1af (diff) | |
download | linux-exynos-1e5231c842b0733d63c9ae7d4e22b8de8aa63d02.tar.gz linux-exynos-1e5231c842b0733d63c9ae7d4e22b8de8aa63d02.tar.bz2 linux-exynos-1e5231c842b0733d63c9ae7d4e22b8de8aa63d02.zip |
pci: exynos5433: use the platform_get_resource_byname intead of index
Use the platform_get_resource_byname for getting correct resource.
Change-Id: I1e4627705c2b612f457545ea1e07383b35d9450f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
-rw-r--r-- | drivers/pci/host/pci-exynos5433.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/pci/host/pci-exynos5433.c b/drivers/pci/host/pci-exynos5433.c index ba3915593a75..196ae318c485 100644 --- a/drivers/pci/host/pci-exynos5433.c +++ b/drivers/pci/host/pci-exynos5433.c @@ -467,8 +467,8 @@ static int __init exynos_pcie_probe(struct platform_device *pdev) if (ret) goto fail_clk; - /* Application Register */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); + /* External Local Bus interface(ELBI) Register */ + res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "elbi"); exynos_pcie->elbi_base = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(exynos_pcie->elbi_base)) { ret = PTR_ERR(exynos_pcie->elbi_base); @@ -476,16 +476,16 @@ static int __init exynos_pcie_probe(struct platform_device *pdev) } /* Physical Layer Register */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 1); + res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "phy"); exynos_pcie->phy_base = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(exynos_pcie->phy_base)) { ret = PTR_ERR(exynos_pcie->phy_base); goto fail_bus_clk; } - /* Workaround Block register(System register) */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 2); - exynos_pcie->block_base = devm_ioremap_resource(&pdev->dev, res); + /* Data Bus Interface(DBI) Register */ + res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dbi"); + pp->dbi_base = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(exynos_pcie->block_base)) goto fail_bus_clk; |