diff options
| author | Dejin Zheng <[email protected]> | 2020-07-08 16:40:13 +0000 |
|---|---|---|
| committer | Lorenzo Pieralisi <[email protected]> | 2020-07-17 16:15:08 +0000 |
| commit | 936fa5cd7b8e3e2a21b434d0f3ac29784ac69791 (patch) | |
| tree | 616b839b76a4fb907d74f3b5fc0b105f7e557f6f /drivers/pci/controller/dwc/pcie-uniphier.c | |
| parent | PCI: qcom: Replace define with standard value (diff) | |
| download | kernel-936fa5cd7b8e3e2a21b434d0f3ac29784ac69791.tar.gz kernel-936fa5cd7b8e3e2a21b434d0f3ac29784ac69791.zip | |
PCI: dwc: Convert to devm_platform_ioremap_resource_byname()
Use devm_platform_ioremap_resource_byname() to simplify the code
since it contains platform_get_resource_byname() and
devm_ioremap_resource() respectively.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dejin Zheng <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Reviewed-by: Gustavo Pimentel <[email protected]>
Reviewed-by: Rob Herring <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-uniphier.c')
| -rw-r--r-- | drivers/pci/controller/dwc/pcie-uniphier.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/controller/dwc/pcie-uniphier.c b/drivers/pci/controller/dwc/pcie-uniphier.c index a5401a0b1e58..3a7f403b57b8 100644 --- a/drivers/pci/controller/dwc/pcie-uniphier.c +++ b/drivers/pci/controller/dwc/pcie-uniphier.c @@ -416,8 +416,7 @@ static int uniphier_pcie_probe(struct platform_device *pdev) if (IS_ERR(priv->pci.dbi_base)) return PTR_ERR(priv->pci.dbi_base); - res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "link"); - priv->base = devm_ioremap_resource(dev, res); + priv->base = devm_platform_ioremap_resource_byname(pdev, "link"); if (IS_ERR(priv->base)) return PTR_ERR(priv->base); |
