projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b79e77
)
mmc: meson-gx-mmc: Fix platform_get_irq's error checking
author
Arvind Yadav
<arvind.yadav.cs@gmail.com>
Sun, 19 Nov 2017 04:52:43 +0000
(10:22 +0530)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Fri, 15 Dec 2017 08:13:16 +0000
(09:13 +0100)
The platform_get_irq() function returns negative if an error occurs.
zero or positive number on success. platform_get_irq() error checking
for zero is not correct.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Acked-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/meson-gx-mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/meson-gx-mmc.c
b/drivers/mmc/host/meson-gx-mmc.c
index e0862d3f65b346b5ef40c378530af206d2ea9f81..32a6a228cd120ac1e9beb79b7c018977d9fb6422 100644
(file)
--- a/
drivers/mmc/host/meson-gx-mmc.c
+++ b/
drivers/mmc/host/meson-gx-mmc.c
@@
-1208,7
+1208,7
@@
static int meson_mmc_probe(struct platform_device *pdev)
}
irq = platform_get_irq(pdev, 0);
- if (
!irq
) {
+ if (
irq <= 0
) {
dev_err(&pdev->dev, "failed to get interrupt resource.\n");
ret = -EINVAL;
goto free_host;