projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db04030
)
gpio: mxc: Do not hard code return value
author
Sachin Kamat
<sachin.kamat@linaro.org>
Sat, 21 Dec 2013 07:35:57 +0000
(13:05 +0530)
committer
Linus Walleij
<linus.walleij@linaro.org>
Thu, 2 Jan 2014 12:55:53 +0000
(13:55 +0100)
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>
drivers/gpio/gpio-mxc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpio/gpio-mxc.c
b/drivers/gpio/gpio-mxc.c
index 3307f6db3a925fb3469c29f34eb69bfb93ca312a..db83b3c0a44959f47851d3705fe7bb5b337a8577 100644
(file)
--- 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);