Skip to content

Commit

Permalink
hwrng: ks-sa - remove dev from struct ks_sa_rng
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
martin-kaiser authored and herbertx committed Sep 15, 2023
1 parent b8f836c commit 2db1809
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/char/hw_random/ks-sa-rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ struct trng_regs {
};

struct ks_sa_rng {
struct device *dev;
struct hwrng rng;
struct clk *clk;
struct regmap *regmap_cfg;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 2db1809

Please sign in to comment.