hwrng: xiphera - removed unnneded platform_set_drvdata()
authorAndrei Coardos <aboutphysycs@gmail.com>
Mon, 28 Aug 2023 10:29:43 +0000 (13:29 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 Sep 2023 10:29:45 +0000 (18:29 +0800)
This function call was found to be unnecessary as there is no equivalent
platform_get_drvdata() call to access the private data of the driver. Also,
the private data is defined in this driver, so there is no risk of it being
accessed outside of this driver file.

Signed-off-by: Andrei Coardos <aboutphysycs@gmail.com>
Reviewed-by: Alexandru Ardelean <alex@shruggie.ro>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/xiphera-trng.c

index 2c586d1fe8a952b500e4aa2dfc3bf5ce4cc6ff30..4af64f76c8d613189cca8714ee2b5d86651698e6 100644 (file)
@@ -121,8 +121,6 @@ static int xiphera_trng_probe(struct platform_device *pdev)
                return ret;
        }
 
-       platform_set_drvdata(pdev, trng);
-
        return 0;
 }