From: Patrice CHOTARD Date: Thu, 18 Apr 2013 07:15:20 +0000 (+0200) Subject: pinctrl: abx500: fix issue when no pdata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=06b62d82146fed98fcb846c4d93d85f1dea5d36a;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git pinctrl: abx500: fix issue when no pdata Fix an issue when probing pinctrl-abx500 with no platform data. Signed-off-by: Patrice Chotard Signed-off-by: Linus Walleij --- diff --git a/drivers/pinctrl/pinctrl-abx500.c b/drivers/pinctrl/pinctrl-abx500.c index 9b8db91c390f..aa17f7580f61 100644 --- a/drivers/pinctrl/pinctrl-abx500.c +++ b/drivers/pinctrl/pinctrl-abx500.c @@ -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 */