Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 06b62d82 authored by Patrice CHOTARD's avatar Patrice CHOTARD Committed by Linus Walleij
Browse files

pinctrl: abx500: fix issue when no pdata



Fix an issue when probing pinctrl-abx500 with no
platform data.

Signed-off-by: default avatarPatrice Chotard <patrice.chotard@st.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 54b7a056
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -880,7 +880,6 @@ static int abx500_gpio_probe(struct platform_device *pdev)
	pct->parent = dev_get_drvdata(pdev->dev.parent);
	pct->parent = dev_get_drvdata(pdev->dev.parent);
	pct->chip = abx500gpio_chip;
	pct->chip = abx500gpio_chip;
	pct->chip.dev = &pdev->dev;
	pct->chip.dev = &pdev->dev;
	pct->chip.base = pdata->gpio_base;
	pct->chip.base = (np) ? -1 : pdata->gpio_base;
	pct->chip.base = (np) ? -1 : pdata->gpio_base;


	/* initialize the lock */
	/* initialize the lock */