pinctrl: abx500: fix issue when no pdata
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>
This commit is contained in:
parent
54b7a05660
commit
06b62d8214
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user