projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a40be5e
)
hwrng: ba431 - do not set drvdata
author
Martin Kaiser
<martin@kaiser.cx>
Thu, 13 Jul 2023 07:04:44 +0000
(09:04 +0200)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Sat, 22 Jul 2023 01:59:37 +0000
(13:59 +1200)
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>
drivers/char/hw_random/ba431-rng.c
patch
|
blob
|
history
diff --git
a/drivers/char/hw_random/ba431-rng.c
b/drivers/char/hw_random/ba431-rng.c
index
5b7ca04
..
b1518dd
100644
(file)
--- 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);