mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
9d7e603f4d
Some backported thermal patches ended up with the wrong kernel
version in their filename. Fix this.
Fixes: c36de2e73a
("mediatek: backport a hell of thermal commits")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
From c864ff9de3b225b43bb8e08dedb223632323e059 Mon Sep 17 00:00:00 2001
|
|
From: Andrei Coardos <aboutphysycs@gmail.com>
|
|
Date: Fri, 11 Aug 2023 22:28:47 +0300
|
|
Subject: [PATCH 34/42] 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 <aboutphysycs@gmail.com>
|
|
Reviewed-by: Alexandru Ardelean <alex@shruggie.ro>
|
|
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
|
|
Link: https://lore.kernel.org/r/20230811192847.3838-1-aboutphysycs@gmail.com
|
|
---
|
|
drivers/thermal/mediatek/auxadc_thermal.c | 2 --
|
|
1 file changed, 2 deletions(-)
|
|
|
|
--- a/drivers/thermal/mediatek/auxadc_thermal.c
|
|
+++ b/drivers/thermal/mediatek/auxadc_thermal.c
|
|
@@ -1283,8 +1283,6 @@ static int mtk_thermal_probe(struct plat
|
|
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))
|