Skip to content
Snippets Groups Projects
Commit df46dce0 authored by Wei Yongjun's avatar Wei Yongjun Committed by Linus Walleij
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -465,6 +465,7 @@ static int ioh_gpio_probe(struct pci_dev *pdev,
dev_warn(&pdev->dev,
"ml_ioh_gpio: Failed to get IRQ base num\n");
chip->irq_base = -1;
ret = irq_base;
goto err_irq_alloc_descs;
}
chip->irq_base = irq_base;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment