mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 21:58:04 +00:00
c36de2e73a
Backport almost 50 commits from upstream Linux to improve thermal drivers for MediaTek SoCs and add new LVTS driver for MT7988. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
From 6186be80317d1dbda34d35c06c084a083938f2d3 Mon Sep 17 00:00:00 2001
|
|
From: Chen Jiahao <chenjiahao16@huawei.com>
|
|
Date: Wed, 2 Aug 2023 17:45:27 +0800
|
|
Subject: [PATCH 32/42] thermal/drivers/mediatek: Clean up redundant
|
|
dev_err_probe()
|
|
|
|
Referring to platform_get_irq()'s definition, the return value has
|
|
already been checked if ret < 0, and printed via dev_err_probe().
|
|
Calling dev_err_probe() one more time outside platform_get_irq()
|
|
is obviously redundant.
|
|
|
|
Removing dev_err_probe() outside platform_get_irq() to clean up
|
|
above problem.
|
|
|
|
Signed-off-by: Chen Jiahao <chenjiahao16@huawei.com>
|
|
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
|
|
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
|
|
Link: https://lore.kernel.org/r/20230802094527.988842-1-chenjiahao16@huawei.com
|
|
---
|
|
drivers/thermal/mediatek/lvts_thermal.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/thermal/mediatek/lvts_thermal.c
|
|
+++ b/drivers/thermal/mediatek/lvts_thermal.c
|
|
@@ -1216,7 +1216,7 @@ static int lvts_probe(struct platform_de
|
|
|
|
irq = platform_get_irq(pdev, 0);
|
|
if (irq < 0)
|
|
- return dev_err_probe(dev, irq, "No irq resource\n");
|
|
+ return irq;
|
|
|
|
ret = lvts_domain_init(dev, lvts_td, lvts_data);
|
|
if (ret)
|