Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Virupax Sadashivpetimath and committed by
Samuel Ortiz
f4ebcab3 f1334fb3

-2
-2
drivers/gpio/stmpe-gpio.c
··· 291 291 int irq; 292 292 293 293 pdata = stmpe->pdata->gpio; 294 - if (!pdata) 295 - return -ENODEV; 296 294 297 295 irq = platform_get_irq(pdev, 0); 298 296 if (irq < 0)