projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
555e387
)
crypto: starfive - Fix dev_err_probe return error
author
Jia Jie Ho
<jiajie.ho@starfivetech.com>
Mon, 4 Dec 2023 03:04:13 +0000
(11:04 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 15 Dec 2023 09:52:53 +0000
(17:52 +0800)
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>
drivers/crypto/starfive/jh7110-cryp.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/starfive/jh7110-cryp.c
b/drivers/crypto/starfive/jh7110-cryp.c
index 31803e9cacba7768f9b62f495d88deccd8ce9b65..425fddf3a8abcbb76bc3e31905226216945da0ae 100644
(file)
--- 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);