Skip to content

Commit d58ac80

Browse files
ahunter6storulf
authored andcommitted
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: 1b7ba57 ("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]>
1 parent 47b7de2 commit d58ac80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/sdhci-acpi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ static int sdhci_acpi_probe(struct platform_device *pdev)
680680
host->hw_name = "ACPI";
681681
host->ops = &sdhci_acpi_ops_dflt;
682682
host->irq = platform_get_irq(pdev, 0);
683-
if (host->irq <= 0) {
683+
if (host->irq < 0) {
684684
err = -EINVAL;
685685
goto err_free;
686686
}

0 commit comments

Comments
 (0)