aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrice CHOTARD <patrice.chotard@st.com>2013-04-18 03:15:20 -0400
committerLinus Walleij <linus.walleij@linaro.org>2013-04-18 04:28:04 -0400
commit06b62d82146fed98fcb846c4d93d85f1dea5d36a (patch)
tree69598550ea7eff3721a605616e5cfedaaac1dd15
parent54b7a05660a02b29382ed84cdeb8dd93eb8c8494 (diff)
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>
-rw-r--r--drivers/pinctrl/pinctrl-abx500.c1
1 files changed, 0 insertions, 1 deletions
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)
880 pct->parent = dev_get_drvdata(pdev->dev.parent); 880 pct->parent = dev_get_drvdata(pdev->dev.parent);
881 pct->chip = abx500gpio_chip; 881 pct->chip = abx500gpio_chip;
882 pct->chip.dev = &pdev->dev; 882 pct->chip.dev = &pdev->dev;
883 pct->chip.base = pdata->gpio_base;
884 pct->chip.base = (np) ? -1 : pdata->gpio_base; 883 pct->chip.base = (np) ? -1 : pdata->gpio_base;
885 884
886 /* initialize the lock */ 885 /* initialize the lock */