Skip to content

Commit

Permalink
hwrng: arm-smccc-trng - don't set drvdata
Browse files Browse the repository at this point in the history
Don't set drvdata, there's nobody who reads it.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
martin-kaiser authored and herbertx committed Jul 22, 2023
1 parent 28b7760 commit dd10546
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/char/hw_random/arm_smccc_trng.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ static int smccc_trng_probe(struct platform_device *pdev)
trng->name = "smccc_trng";
trng->read = smccc_trng_read;

platform_set_drvdata(pdev, trng);

return devm_hwrng_register(&pdev->dev, trng);
}

Expand Down

0 comments on commit dd10546

Please sign in to comment.