From f4ebcab36088d45a5e8889e9b63d77e01c808076 Mon Sep 17 00:00:00 2001 From: Virupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com> Date: Tue, 31 Aug 2010 10:04:56 +0530 Subject: [PATCH] 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> --- drivers/gpio/stmpe-gpio.c | 2 -- 1 file changed, 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) int irq; pdata = stmpe->pdata->gpio; - if (!pdata) - return -ENODEV; irq = platform_get_irq(pdev, 0); if (irq < 0) -- GitLab