diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2014-01-14 06:58:57 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-01-24 16:39:55 -0500 |
commit | dfe0924ebd0a3c9c0ecc2740a6b540c9adfc2d60 (patch) | |
tree | 61459ced9728cf3c6de1a715ad41b37363870ac2 /arch/mips | |
parent | 9fbf8e8880839aa9017189d258de2c23006ec59c (diff) |
arch/mips/pci: don't check resource with devm_ioremap_resource
devm_ioremap_resource does sanity checks on the given resource. No need to
duplicate this in the driver.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6349/
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/pci/pci-rt3883.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/mips/pci/pci-rt3883.c b/arch/mips/pci/pci-rt3883.c index adeff2bfe4cd..72919aeef42b 100644 --- a/arch/mips/pci/pci-rt3883.c +++ b/arch/mips/pci/pci-rt3883.c | |||
@@ -436,9 +436,6 @@ static int rt3883_pci_probe(struct platform_device *pdev) | |||
436 | return -ENOMEM; | 436 | return -ENOMEM; |
437 | 437 | ||
438 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 438 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
439 | if (!res) | ||
440 | return -EINVAL; | ||
441 | |||
442 | rpc->base = devm_ioremap_resource(dev, res); | 439 | rpc->base = devm_ioremap_resource(dev, res); |
443 | if (IS_ERR(rpc->base)) | 440 | if (IS_ERR(rpc->base)) |
444 | return PTR_ERR(rpc->base); | 441 | return PTR_ERR(rpc->base); |