diff options
author | Jia Jie Ho <jiajie.ho@starfivetech.com> | 2023-12-04 11:04:13 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-12-15 17:52:53 +0800 |
commit | 8517c34e87025b3f74f3c07813d493828f369598 (patch) | |
tree | 8c95a2f57d8ed580c09c5e49eb82c7f15ad44421 /drivers/crypto/starfive/jh7110-cryp.c | |
parent | 555e387047761eb909a0a1a8230efad3fa3e82ca (diff) |
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: Jia Jie Ho <jiajie.ho@starfivetech.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/starfive/jh7110-cryp.c')
-rw-r--r-- | drivers/crypto/starfive/jh7110-cryp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/starfive/jh7110-cryp.c b/drivers/crypto/starfive/jh7110-cryp.c index 31803e9cacba..425fddf3a8ab 100644 --- a/drivers/crypto/starfive/jh7110-cryp.c +++ b/drivers/crypto/starfive/jh7110-cryp.c @@ -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, (void *)cryp); if (ret) - return dev_err_probe(&pdev->dev, irq, + return dev_err_probe(&pdev->dev, ret, "Failed to register interrupt handler\n"); clk_prepare_enable(cryp->hclk); |