Skip to content

Commit

Permalink
hwrng: ba431 - do not set drvdata
Browse files Browse the repository at this point in the history
Do not set drvdata in the ba431 driver. Nobody is using 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 a40be5e commit e8c1fdc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/char/hw_random/ba431-rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,6 @@ static int ba431_trng_probe(struct platform_device *pdev)
ba431->rng.cleanup = ba431_trng_cleanup;
ba431->rng.read = ba431_trng_read;

platform_set_drvdata(pdev, ba431);

ret = devm_hwrng_register(&pdev->dev, &ba431->rng);
if (ret) {
dev_err(&pdev->dev, "BA431 registration failed (%d)\n", ret);
Expand Down

0 comments on commit e8c1fdc

Please sign in to comment.