Skip to content

Commit

Permalink
gpio: Handle stmpe-gpio platform data with no gpio base
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Virupax Sadashivpetimath authored and Samuel Ortiz committed Oct 28, 2010
1 parent f1334fb commit f4ebcab
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/gpio/stmpe-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f4ebcab

Please sign in to comment.