2013-04-18 07:15:31

by Patrice CHOTARD

[permalink] [raw]
Subject: [PATCH] pinctrl: pinctrl-abx500: fix issue when no pdata

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

Signed-off-by: Patrice Chotard <[email protected]>
---
drivers/pinctrl/pinctrl-abx500.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/pinctrl/pinctrl-abx500.c
b/drivers/pinctrl/pinctrl-abx500.c
index 0cf3fa4..04b1408 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 */
-- 1.7.10-


2013-04-18 08:29:19

by Linus Walleij

[permalink] [raw]
Subject: Re: [PATCH] pinctrl: pinctrl-abx500: fix issue when no pdata

On Thu, Apr 18, 2013 at 9:15 AM, Patrice CHOTARD <[email protected]> wrote:

> Fix an issue when probing pinctrl-abx500 with no
> platform data
>
> Signed-off-by: Patrice Chotard <[email protected]>

Patch applied, thanks!

Linus Walleij