summaryrefslogtreecommitdiffstats
path: root/drivers/char/hw_random/jh7110-trng.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/hw_random/jh7110-trng.c')
-rw-r--r--drivers/char/hw_random/jh7110-trng.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hw_random/jh7110-trng.c b/drivers/char/hw_random/jh7110-trng.c
index 38474d48a2..b1f94e3c0c 100644
--- a/drivers/char/hw_random/jh7110-trng.c
+++ b/drivers/char/hw_random/jh7110-trng.c
@@ -300,7 +300,7 @@ static int starfive_trng_probe(struct platform_device *pdev)
ret = devm_request_irq(&pdev->dev, irq, starfive_trng_irq, 0, pdev->name,
(void *)trng);
if (ret)
- return dev_err_probe(&pdev->dev, irq,
+ return dev_err_probe(&pdev->dev, ret,
"Failed to register interrupt handler\n");
trng->hclk = devm_clk_get(&pdev->dev, "hclk");