diff options
author | Zhang Qilong <zhangqilong3@huawei.com> | 2020-09-17 10:46:22 +0300 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2020-09-18 16:29:35 +0300 |
commit | b0a1c2903b5f43861a78a25fe4f389d99607ae04 (patch) | |
tree | 7d8d15ac6aedf1a07f5e566d4c750320f65fea04 /arch/mips/pci/pci-ar2315.c | |
parent | 38a6445cab6ba4bf6b32f28552d2a7d87dc4414a (diff) | |
download | linux-b0a1c2903b5f43861a78a25fe4f389d99607ae04.tar.xz |
MIPS: pci: use devm_platform_ioremap_resource_byname
Use the devm_platform_ioremap_resource_byname() helper instead of
calling platform_get_resource_byname() and devm_ioremap_resource()
separately.
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/pci/pci-ar2315.c')
-rw-r--r-- | arch/mips/pci/pci-ar2315.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/mips/pci/pci-ar2315.c b/arch/mips/pci/pci-ar2315.c index 490953f51528..d1b141e8f301 100644 --- a/arch/mips/pci/pci-ar2315.c +++ b/arch/mips/pci/pci-ar2315.c @@ -423,9 +423,8 @@ static int ar2315_pci_probe(struct platform_device *pdev) return -EINVAL; apc->irq = irq; - res = platform_get_resource_byname(pdev, IORESOURCE_MEM, - "ar2315-pci-ctrl"); - apc->mmr_mem = devm_ioremap_resource(dev, res); + apc->mmr_mem = devm_platform_ioremap_resource_byname(pdev, + "ar2315-pci-ctrl"); if (IS_ERR(apc->mmr_mem)) return PTR_ERR(apc->mmr_mem); |