[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230613114904.15749-10-frank.li@vivo.com>
Date: Tue, 13 Jun 2023 19:49:02 +0800
From: Yangtao Li <frank.li@...o.com>
To: glaroque@...libre.com, rafael@...nel.org,
daniel.lezcano@...aro.org, amitk@...nel.org, rui.zhang@...el.com,
shawnguo@...nel.org, s.hauer@...gutronix.de, kernel@...gutronix.de,
festevam@...il.com, linux-imx@....com, thara.gopinath@...il.com,
agross@...nel.org, andersson@...nel.org, konrad.dybcio@...aro.org,
anarsoul@...il.com, tiny.windzz@...il.com, wens@...e.org,
jernej.skrabec@...il.com, samuel@...lland.org,
thierry.reding@...il.com, jonathanh@...dia.com,
edubezval@...il.com, j-keerthy@...com, matthias.bgg@...il.com,
angelogioacchino.delregno@...labora.com, bchihi@...libre.com,
niklas.soderlund+renesas@...natech.se, wenst@...omium.org
Cc: linux-pm@...r.kernel.org, linux-amlogic@...ts.infradead.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-arm-msm@...r.kernel.org, linux-sunxi@...ts.linux.dev,
linux-tegra@...r.kernel.org, linux-omap@...r.kernel.org,
linux-mediatek@...ts.infradead.org, Yangtao Li <frank.li@...o.com>
Subject: [PATCH v3 10/12] thermal/drivers/mediatek/lvts_thermal: remove redundant msg
The upper-layer devm_thermal_add_hwmon_sysfs() function can directly
print error information.
Signed-off-by: Yangtao Li <frank.li@...o.com>
---
drivers/thermal/mediatek/lvts_thermal.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/thermal/mediatek/lvts_thermal.c b/drivers/thermal/mediatek/lvts_thermal.c
index 1e11defe4f35..b693fac2d677 100644
--- a/drivers/thermal/mediatek/lvts_thermal.c
+++ b/drivers/thermal/mediatek/lvts_thermal.c
@@ -998,8 +998,7 @@ static int lvts_ctrl_start(struct device *dev, struct lvts_ctrl *lvts_ctrl)
return PTR_ERR(tz);
}
- if (devm_thermal_add_hwmon_sysfs(dev, tz))
- dev_warn(dev, "zone %d: Failed to add hwmon sysfs attributes\n", dt_id);
+ devm_thermal_add_hwmon_sysfs(dev, tz);
/*
* The thermal zone pointer will be needed in the
--
2.39.0
Powered by blists - more mailing lists