提交 d58ac803 编写于 作者: A Adrian Hunter 提交者: Ulf Hansson

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: NLuke Ross <luke@lukeross.name>
Fixes: 1b7ba57e ("mmc: sdhci-acpi: Handle return value of platform_get_irq")
Cc: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: NAdrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
上级 47b7de2f
...@@ -680,7 +680,7 @@ static int sdhci_acpi_probe(struct platform_device *pdev) ...@@ -680,7 +680,7 @@ static int sdhci_acpi_probe(struct platform_device *pdev)
host->hw_name = "ACPI"; host->hw_name = "ACPI";
host->ops = &sdhci_acpi_ops_dflt; host->ops = &sdhci_acpi_ops_dflt;
host->irq = platform_get_irq(pdev, 0); host->irq = platform_get_irq(pdev, 0);
if (host->irq <= 0) { if (host->irq < 0) {
err = -EINVAL; err = -EINVAL;
goto err_free; goto err_free;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册