From: Wolfram Sang Date: Thu, 16 May 2013 10:15:59 +0000 (+0000) Subject: MIPS: Xway: Don't check resource with devm_ioremap_resource X-Git-Tag: next-20130527~88^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3b5f204ea2dbaa9047b11dc9c72ee4f8069b643a;p=karo-tx-linux.git MIPS: Xway: 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 Cc: linux-kernel@vger.kernel.org Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/5245/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/lantiq/xway/gptu.c b/arch/mips/lantiq/xway/gptu.c index 9861c8669fab..d6a79b8a6016 100644 --- a/arch/mips/lantiq/xway/gptu.c +++ b/arch/mips/lantiq/xway/gptu.c @@ -144,10 +144,6 @@ static int gptu_probe(struct platform_device *pdev) } res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) { - dev_err(&pdev->dev, "Failed to get resource\n"); - return -ENOMEM; - } /* remap gptu register range */ gptu_membase = devm_ioremap_resource(&pdev->dev, res);