pinctrl-bcm281xx: remove duplicate check on resource
authorVarka Bhadram <varkabhadram@gmail.com>
Tue, 21 Oct 2014 09:06:58 +0000 (14:36 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 31 Oct 2014 09:58:39 +0000 (10:58 +0100)
Sanity check on resource happening with devm_ioremap_resource().

Signed-off-by: Varka Bhadram <varkab@cdac.in>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-bcm281xx.c

index a26e0c2ba33ef8bd734fcaf71c7944f71edf0bda..2b25047fef8d6115c2c025e870375664ce2a49ec 100644 (file)
@@ -1404,11 +1404,6 @@ static int __init bcm281xx_pinctrl_probe(struct platform_device *pdev)
 
        /* So far We can assume there is only 1 bank of registers */
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-       if (!res) {
-               dev_err(&pdev->dev, "Missing MEM resource\n");
-               return -ENODEV;
-       }
-
        pdata->reg_base = devm_ioremap_resource(&pdev->dev, res);
        if (IS_ERR(pdata->reg_base)) {
                dev_err(&pdev->dev, "Failed to ioremap MEM resource\n");