diff options
author | Martin Kaiser <martin@kaiser.cx> | 2023-07-13 09:04:44 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-07-22 03:59:37 +0200 |
commit | e8c1fdcc62d373da38f673e474564fbed9e249dd (patch) | |
tree | 892fbe819df60e77958a34b067c6785a65cfa89c /drivers/char/hw_random | |
parent | hwrng: ingenic - switch to device managed registration (diff) | |
download | linux-e8c1fdcc62d373da38f673e474564fbed9e249dd.tar.xz linux-e8c1fdcc62d373da38f673e474564fbed9e249dd.zip |
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>
Diffstat (limited to 'drivers/char/hw_random')
-rw-r--r-- | drivers/char/hw_random/ba431-rng.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/char/hw_random/ba431-rng.c b/drivers/char/hw_random/ba431-rng.c index 5b7ca0416490..b1518dd52a24 100644 --- a/drivers/char/hw_random/ba431-rng.c +++ b/drivers/char/hw_random/ba431-rng.c @@ -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); |