diff mbox series

[1/5] hwrng: meson: remove unused member of struct meson_rng_data

Message ID 08fa1416-8786-b442-2a45-0ba669992639@gmail.com (mailing list archive)
State New, archived
Headers show
Series hwrng: meson: simplify driver | expand

Commit Message

Heiner Kallweit Feb. 18, 2023, 8:55 p.m. UTC
Member pdev isn't used, remove it.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
 drivers/char/hw_random/meson-rng.c | 3 ---
 1 file changed, 3 deletions(-)

Comments

Martin Blumenstingl Feb. 19, 2023, 5:26 p.m. UTC | #1
On Sat, Feb 18, 2023 at 9:59 PM Heiner Kallweit <hkallweit1@gmail.com> wrote:
>
> Member pdev isn't used, remove it.
>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
diff mbox series

Patch

diff --git a/drivers/char/hw_random/meson-rng.c b/drivers/char/hw_random/meson-rng.c
index 8bb30282c..e79069b6d 100644
--- a/drivers/char/hw_random/meson-rng.c
+++ b/drivers/char/hw_random/meson-rng.c
@@ -18,7 +18,6 @@ 
 
 struct meson_rng_data {
 	void __iomem *base;
-	struct platform_device *pdev;
 	struct hwrng rng;
 	struct clk *core_clk;
 };
@@ -48,8 +47,6 @@  static int meson_rng_probe(struct platform_device *pdev)
 	if (!data)
 		return -ENOMEM;
 
-	data->pdev = pdev;
-
 	data->base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(data->base))
 		return PTR_ERR(data->base);