diff mbox series

[3/5] hwrng: meson: remove not needed call to platform_set_drvdata

Message ID 7d1fc713-850d-d9cd-3fe2-60fd690f406a@gmail.com
State Accepted
Commit c6ffae6e0c43452b5eeb7945dc7da75ee6249f13
Headers show
Series hwrng: meson: simplify driver | expand

Commit Message

Heiner Kallweit Feb. 18, 2023, 8:57 p.m. UTC
drvdata isn't used, therefore remove this call.

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

Patch

diff --git a/drivers/char/hw_random/meson-rng.c b/drivers/char/hw_random/meson-rng.c
index 22e3dcc6f..a4eb8e35f 100644
--- a/drivers/char/hw_random/meson-rng.c
+++ b/drivers/char/hw_random/meson-rng.c
@@ -53,8 +53,6 @@  static int meson_rng_probe(struct platform_device *pdev)
 	data->rng.name = pdev->name;
 	data->rng.read = meson_rng_read;
 
-	platform_set_drvdata(pdev, data);
-
 	return devm_hwrng_register(dev, &data->rng);
 }