From: Wolfram Sang Date: Tue, 14 Jan 2014 11:58:57 +0000 (+0100) Subject: arch/mips/pci: don't check resource with devm_ioremap_resource X-Git-Tag: next-20140116~105^2^2~5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7aa49e05f259f32e1e5332ab7d49c05f4ce60c3b;p=karo-tx-linux.git 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 Acked-by: John Crispin Patchwork: http://patchwork.linux-mips.org/patch/6349/ --- 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) return -ENOMEM; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) - return -EINVAL; - rpc->base = devm_ioremap_resource(dev, res); if (IS_ERR(rpc->base)) return PTR_ERR(rpc->base);