Commit 8517c34e authored by Jia Jie Ho's avatar Jia Jie Ho Committed by Herbert Xu

crypto: starfive - Fix dev_err_probe return error

Current dev_err_probe will return 0 instead of proper error code if
driver failed to get irq number. Fix the return code.
Signed-off-by: default avatarJia Jie Ho <jiajie.ho@starfivetech.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 555e3870
...@@ -160,7 +160,7 @@ static int starfive_cryp_probe(struct platform_device *pdev) ...@@ -160,7 +160,7 @@ static int starfive_cryp_probe(struct platform_device *pdev)
ret = devm_request_irq(&pdev->dev, irq, starfive_cryp_irq, 0, pdev->name, ret = devm_request_irq(&pdev->dev, irq, starfive_cryp_irq, 0, pdev->name,
(void *)cryp); (void *)cryp);
if (ret) if (ret)
return dev_err_probe(&pdev->dev, irq, return dev_err_probe(&pdev->dev, ret,
"Failed to register interrupt handler\n"); "Failed to register interrupt handler\n");
clk_prepare_enable(cryp->hclk); clk_prepare_enable(cryp->hclk);
......
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