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

Heiner Kallweit hkallweit1 at gmail.com
Sat Feb 18 12:57:18 PST 2023


drvdata isn't used, therefore remove this call.

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

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);
 }
 
-- 
2.39.2





More information about the linux-amlogic mailing list