diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-12-21 13:05:57 +0530 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-01-02 13:55:53 +0100 |
commit | 5ea80e4910cd47270ae4c13b1fce0899aaa28410 (patch) | |
tree | bfea06dfe23ed182140e4cd21f46490d37d747b1 /drivers/gpio/gpio-mxc.c | |
parent | db04030ab2500c5a0eb234ad8dc4e106829c5c71 (diff) |
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>
Diffstat (limited to 'drivers/gpio/gpio-mxc.c')
-rw-r--r-- | drivers/gpio/gpio-mxc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c index 3307f6db3a92..db83b3c0a449 100644 --- a/drivers/gpio/gpio-mxc.c +++ b/drivers/gpio/gpio-mxc.c @@ -422,7 +422,7 @@ static int mxc_gpio_probe(struct platform_device *pdev) port->irq_high = platform_get_irq(pdev, 1); port->irq = platform_get_irq(pdev, 0); if (port->irq < 0) - return -EINVAL; + return port->irq; /* disable the interrupt and clear the status */ writel(0, port->base + GPIO_IMR); |