提交 df46dce0 编写于 作者: W Wei Yongjun 提交者: Linus Walleij

gpio-ml-ioh: fix error return code in ioh_gpio_probe()

Fix to return a negative error code in the irq descs alloc error
handling case instead of 0, as done elsewhere in this function.
Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 611a485b
...@@ -465,6 +465,7 @@ static int ioh_gpio_probe(struct pci_dev *pdev, ...@@ -465,6 +465,7 @@ static int ioh_gpio_probe(struct pci_dev *pdev,
dev_warn(&pdev->dev, dev_warn(&pdev->dev,
"ml_ioh_gpio: Failed to get IRQ base num\n"); "ml_ioh_gpio: Failed to get IRQ base num\n");
chip->irq_base = -1; chip->irq_base = -1;
ret = irq_base;
goto err_irq_alloc_descs; goto err_irq_alloc_descs;
} }
chip->irq_base = irq_base; chip->irq_base = irq_base;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册