gpio: Handle stmpe-gpio platform data with no gpio base
authorVirupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>
Tue, 31 Aug 2010 04:34:56 +0000 (10:04 +0530)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 28 Oct 2010 22:29:18 +0000 (00:29 +0200)
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>
drivers/gpio/stmpe-gpio.c

index 65b9960..932759d 100644 (file)
@@ -291,8 +291,6 @@ static int __devinit stmpe_gpio_probe(struct platform_device *pdev)
        int irq;
 
        pdata = stmpe->pdata->gpio;
-       if (!pdata)
-               return -ENODEV;
 
        irq = platform_get_irq(pdev, 0);
        if (irq < 0)