projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47b7de2
)
mmc: sdhci-acpi: Fix IRQ 0
author
Adrian Hunter
<
[email protected]
>
Wed, 21 Mar 2018 09:49:40 +0000
(11:49 +0200)
committer
Ulf Hansson
<
[email protected]
>
Wed, 21 Mar 2018 10:10:20 +0000
(11:10 +0100)
Zero is a valid IRQ number and is being used on some CHT tablets. Stop
treating it as an error.
Reported-by: Luke Ross <
[email protected]
>
Fixes: 1b7ba57ecc86 ("mmc: sdhci-acpi: Handle return value of platform_get_irq")
Cc: Arvind Yadav <
[email protected]
>
Signed-off-by: Adrian Hunter <
[email protected]
>
Cc:
[email protected]
Signed-off-by: Ulf Hansson <
[email protected]
>
drivers/mmc/host/sdhci-acpi.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/sdhci-acpi.c
b/drivers/mmc/host/sdhci-acpi.c
index 4065da58789d2d091cd918b8cd30c518aac331d7..32321bd596d880027358db10e9eb5f5b45957c1d 100644
(file)
--- a/
drivers/mmc/host/sdhci-acpi.c
+++ b/
drivers/mmc/host/sdhci-acpi.c
@@
-680,7
+680,7
@@
static int sdhci_acpi_probe(struct platform_device *pdev)
host->hw_name = "ACPI";
host->ops = &sdhci_acpi_ops_dflt;
host->irq = platform_get_irq(pdev, 0);
- if (host->irq <
=
0) {
+ if (host->irq < 0) {
err = -EINVAL;
goto err_free;
}