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

gpio: mxc: Do not hard code return value

Silences the following warning:
why not propagate 'port->irq' from platform_get_irq() instead of (-22)?

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Sachin Kamat and committed by
Linus Walleij
5ea80e49 db04030a

+1 -1
+1 -1
drivers/gpio/gpio-mxc.c
··· 422 422 port->irq_high = platform_get_irq(pdev, 1); 423 423 port->irq = platform_get_irq(pdev, 0); 424 424 if (port->irq < 0) 425 - return -EINVAL; 425 + return port->irq; 426 426 427 427 /* disable the interrupt and clear the status */ 428 428 writel(0, port->base + GPIO_IMR);