Commit df46dce0 authored by Wei Yongjun's avatar Wei Yongjun Committed by 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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment