arch/mips/lantiq/xway: don't check resource with devm_ioremap_resource
[linux-3.10.git] / arch / mips / lantiq / xway / gptu.c
index 9861c86..d6a79b8 100644 (file)
@@ -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);