summaryrefslogtreecommitdiff
path: root/drivers/char
diff options
context:
space:
mode:
authorMartin Kaiser <martin@kaiser.cx>2023-08-24 22:40:36 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2023-09-15 13:29:44 +0300
commit2db18098d5ad99306b48146e77c51584fcfe5991 (patch)
tree07ba97ced6d425d38136ac7e48a9930751b5c1ed /drivers/char
parentb8f836cbe12bccf2beeadd638e1696f4acaa39c3 (diff)
downloadlinux-2db18098d5ad99306b48146e77c51584fcfe5991.tar.xz
hwrng: ks-sa - remove dev from struct ks_sa_rng
dev in struct ks_sa_rng is not used. Remove it. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/hw_random/ks-sa-rng.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/char/hw_random/ks-sa-rng.c b/drivers/char/hw_random/ks-sa-rng.c
index 0857964f8714..70d21bf657ce 100644
--- a/drivers/char/hw_random/ks-sa-rng.c
+++ b/drivers/char/hw_random/ks-sa-rng.c
@@ -81,7 +81,6 @@ struct trng_regs {
};
struct ks_sa_rng {
- struct device *dev;
struct hwrng rng;
struct clk *clk;
struct regmap *regmap_cfg;
@@ -213,7 +212,6 @@ static int ks_sa_rng_probe(struct platform_device *pdev)
if (!ks_sa_rng)
return -ENOMEM;
- ks_sa_rng->dev = dev;
ks_sa_rng->rng = (struct hwrng) {
.name = "ks_sa_hwrng",
.init = ks_sa_rng_init,