diff options
| author | Andrei Coardos <[email protected]> | 2023-08-11 22:28:47 +0300 |
|---|---|---|
| committer | Daniel Lezcano <[email protected]> | 2023-08-16 12:33:11 +0200 |
| commit | ec6a51927ed3596e16aae0ad9f5762ecaa2af656 (patch) | |
| tree | b15144071bbf2177701a0b9b232b5c18ec949faa | |
| parent | f4636b5587842042d883d6ab646289baabba9c5a (diff) | |
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]
| -rw-r--r-- | drivers/thermal/mediatek/auxadc_thermal.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/thermal/mediatek/auxadc_thermal.c b/drivers/thermal/mediatek/auxadc_thermal.c index c537aed71017..843214d30bd8 100644 --- a/drivers/thermal/mediatek/auxadc_thermal.c +++ b/drivers/thermal/mediatek/auxadc_thermal.c @@ -1282,8 +1282,6 @@ static int mtk_thermal_probe(struct platform_device *pdev) mtk_thermal_init_bank(mt, i, apmixed_phys_base, auxadc_phys_base, ctrl_id); - platform_set_drvdata(pdev, mt); - tzdev = devm_thermal_of_zone_register(&pdev->dev, 0, mt, &mtk_thermal_ops); if (IS_ERR(tzdev)) |