hwrng: meson - remove not needed call to platform_set_drvdata
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 18 Feb 2023 20:57:18 +0000 (21:57 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 14 Mar 2023 09:06:42 +0000 (17:06 +0800)
drvdata isn't used, therefore remove this call.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/meson-rng.c

index 22e3dcc..a4eb8e3 100644 (file)
@@ -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);
 }