Skip to content

Commit f4636b5

Browse files
Andrei Coardosdlezcano
authored andcommitted
thermal/drivers/sun8i_thermal: Remove unneeded call to platform_set_drvdata()
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 <[email protected]> Reviewed-by: Jernej Skrabec <[email protected]> Reviewed-by: Alexandru Ardelean <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent fb6ce32 commit f4636b5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/thermal/sun8i_thermal.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,6 @@ static int sun8i_ths_probe(struct platform_device *pdev)
489489
if (!tmdev->chip)
490490
return -EINVAL;
491491

492-
platform_set_drvdata(pdev, tmdev);
493-
494492
ret = sun8i_ths_resource_init(tmdev);
495493
if (ret)
496494
return ret;

0 commit comments

Comments
 (0)