hwrng: arm-smccc-trng - don't set drvdata
Commit Message
Don't set drvdata, there's nobody who reads it.
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
---
drivers/char/hw_random/arm_smccc_trng.c | 2 --
1 file changed, 2 deletions(-)
Comments
On Sun, Jul 16, 2023 at 04:11:12PM +0200, Martin Kaiser wrote:
> Don't set drvdata, there's nobody who reads it.
>
> Signed-off-by: Martin Kaiser <martin@kaiser.cx>
> ---
> drivers/char/hw_random/arm_smccc_trng.c | 2 --
> 1 file changed, 2 deletions(-)
Patch applied. Thanks.
@@ -105,8 +105,6 @@ static int smccc_trng_probe(struct platform_device *pdev)
trng->name = "smccc_trng";
trng->read = smccc_trng_read;
- platform_set_drvdata(pdev, trng);
-
return devm_hwrng_register(&pdev->dev, trng);
}