Skip to content

Commit ec6a519

Browse files
Andrei Coardosdlezcano
authored andcommitted
thermal/drivers/mediatek/auxadc_thermal: Removed 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: Alexandru Ardelean <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent f4636b5 commit ec6a519

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/thermal/mediatek/auxadc_thermal.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,8 +1282,6 @@ static int mtk_thermal_probe(struct platform_device *pdev)
12821282
mtk_thermal_init_bank(mt, i, apmixed_phys_base,
12831283
auxadc_phys_base, ctrl_id);
12841284

1285-
platform_set_drvdata(pdev, mt);
1286-
12871285
tzdev = devm_thermal_of_zone_register(&pdev->dev, 0, mt,
12881286
&mtk_thermal_ops);
12891287
if (IS_ERR(tzdev))

0 commit comments

Comments
 (0)