diff options
author | Virupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com> | 2010-08-31 00:34:56 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-10-28 18:29:18 -0400 |
commit | f4ebcab36088d45a5e8889e9b63d77e01c808076 (patch) | |
tree | f8d7845192890c59bdb11c2b9f3ec0cc877257a5 /drivers/gpio | |
parent | f1334fb3c3006ba109886158c0ad79512f928bc1 (diff) |
gpio: Handle stmpe-gpio platform data with no gpio base
This patch removes the requirement that gpio base be supplied in
platform data.
Signed-off-by: Virupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/stmpe-gpio.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpio/stmpe-gpio.c b/drivers/gpio/stmpe-gpio.c index 65b996083918..932759db1ac2 100644 --- a/drivers/gpio/stmpe-gpio.c +++ b/drivers/gpio/stmpe-gpio.c | |||
@@ -291,8 +291,6 @@ static int __devinit stmpe_gpio_probe(struct platform_device *pdev) | |||
291 | int irq; | 291 | int irq; |
292 | 292 | ||
293 | pdata = stmpe->pdata->gpio; | 293 | pdata = stmpe->pdata->gpio; |
294 | if (!pdata) | ||
295 | return -ENODEV; | ||
296 | 294 | ||
297 | irq = platform_get_irq(pdev, 0); | 295 | irq = platform_get_irq(pdev, 0); |
298 | if (irq < 0) | 296 | if (irq < 0) |