mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
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>
This commit is contained in:
parent
db04030ab2
commit
5ea80e4910
1 changed files with 1 additions and 1 deletions
|
@ -422,7 +422,7 @@ static int mxc_gpio_probe(struct platform_device *pdev)
|
||||||
port->irq_high = platform_get_irq(pdev, 1);
|
port->irq_high = platform_get_irq(pdev, 1);
|
||||||
port->irq = platform_get_irq(pdev, 0);
|
port->irq = platform_get_irq(pdev, 0);
|
||||||
if (port->irq < 0)
|
if (port->irq < 0)
|
||||||
return -EINVAL;
|
return port->irq;
|
||||||
|
|
||||||
/* disable the interrupt and clear the status */
|
/* disable the interrupt and clear the status */
|
||||||
writel(0, port->base + GPIO_IMR);
|
writel(0, port->base + GPIO_IMR);
|
||||||
|
|
Loading…
Add table
Reference in a new issue