hwrng: ba431 - do not set drvdata
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>
This commit is contained in:
parent
a40be5e89f
commit
e8c1fdcc62
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user