pinctrl: abx500: fix issue when no pdata
authorPatrice CHOTARD <patrice.chotard@st.com>
Thu, 18 Apr 2013 07:15:20 +0000 (09:15 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 18 Apr 2013 08:28:04 +0000 (10:28 +0200)
Fix an issue when probing pinctrl-abx500 with no
platform data.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-abx500.c

index 9b8db91..aa17f75 100644 (file)
@@ -880,7 +880,6 @@ static int abx500_gpio_probe(struct platform_device *pdev)
        pct->parent = dev_get_drvdata(pdev->dev.parent);
        pct->chip = abx500gpio_chip;
        pct->chip.dev = &pdev->dev;
-       pct->chip.base = pdata->gpio_base;
        pct->chip.base = (np) ? -1 : pdata->gpio_base;
 
        /* initialize the lock */