mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
mmc: sdhci-acpi: Fix IRQ 0
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: 1b7ba57ecc ("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]>
This commit is contained in:
parent
47b7de2f6c
commit
d58ac803cf
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue