From patchwork Tue Jun 13 09:56:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13278235 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5EEDFC7EE2E for ; Tue, 13 Jun 2023 09:57:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1mqe5COKuURPkTfs11EqyEkTQil/BIZZ+XL25Z6+Kv0=; b=0dHY9QDbNZ3jly Pb5HMWnbkuD7vGLjkwcj3RgSlv2OZQJllXeetxbVhtskT9upMqX0JMdf8Lzd9B/Zt7ki2+1G2qD6B zbNWupmKmXFPHF2T3kFI5AejCYz5VMPcIUxzAi7OPiA+ClqibTW7MkNEf8ekSoAY5hQ3xzhLtPYUS bwmAkS3QPbPGc4cg840hzjCl/c8nA809k+5HLtN8JSXgA0ep3e71aY7empLwUGK3lzijvdDfwN91P EvwM93YduJUOTXQ4lwM02CuchHRgMrL7jMPpuvr13HxMemsu1EfpSLzQB+PwoAy7h8nZl2rq17hcS WmPngncTGhQusAtnTWig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q90lz-007Zcm-1h; Tue, 13 Jun 2023 09:57:11 +0000 Received: from mail-psaapc01on20719.outbound.protection.outlook.com ([2a01:111:f400:feae::719] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q90ls-007ZZU-1U; Tue, 13 Jun 2023 09:57:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gOwbPjqLpvz9GZ3Saft7C3M/+rjadxPKhHUQyPezzwKzYqkBXNCUioEHfJ5aEWyhGeyqv9bbHTue23ldtS5mgQfRGsIwqxCPxVshTWwJlPJMrHacuQIYKGJLdjoe1Z2r91kDtfR8Uqfvb6+amxFbGS+gm0CD+HpWglWIBqpeLBzswhPyoUgbNw6fRZfnLU1U1q0msLMYm1x93c3vn0m+u6Q0fAxojV4vf5BzOVX3vidM0iz6Jyg/R9VBwEIr9PKu98vZ+CT60dMyTRgwWD05fE1+ikHMpfwmujGJMz7swdOjITrWDKYLLX4M1cxTzdL3Hhb/ROesV7Y+gZnQ5H5zuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=24Ha1tRsob+jqsqACWErpPA/fxmNzTh+5HmmKy1c0Js=; b=BH6iaCMP5X3EYD74/of//vVDoICHhC6paOvifkcDsXhOixGZoJs8v0ezK0cuAczpDS6rEk0bJQVTU95oj9sgVBDrv32AnH0byQbE4q7rV8hnbddY86l201VKZrLNA1pOamcbrTaT98ofP2HsP1SRlSOVSZT344/hxVL6U6dKkfmmulfleQMUXFd93im7rjtNff4WyB5Ie1rX86UMrunkB4t8OcftSTpa1lUHns0BRYuyRKrB3JfIg8OnMjrJ+BH+XmQLKxheH6ac6Ad6PfC9RSLMtrhXmA42TRw2uqqaxzIYgxIvx0gLkyDpZccB3XmRttrm87UWnYzHks77xqsd5w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=24Ha1tRsob+jqsqACWErpPA/fxmNzTh+5HmmKy1c0Js=; b=q7aFEA53Waw6iw2sdDfQ+zCrwzN6xzCGgYaVZpgZA0+6UAwQ0qX1dy3zKk7ezKcS8abSQ1DsvgXkJMeAUOrCcFNZpu5Fu4OTusGErVSsxBynvMraY8HvW9Ir0iL3959n5oCbyLoFe9aLZHc6CTZVXUwQcV3xS60xiylApxzLLpqpRECuNPbGePTKwGex7D6p9xOulGeZnYETfKUvyuBdKdfahwlM1OrYBy8NIL6x+0hipgBSeb7+KvCqfB62HrDFbtCSwFsk5W//FaqqXN0kD+1HLVnW3lf4nnCHhhaTgjthuE6Dg5Ea1nAFL+HL55G8cTZxrMnTxosmki6WfwlRXw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by SI2PR06MB4012.apcprd06.prod.outlook.com (2603:1096:4:f9::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.46; Tue, 13 Jun 2023 09:56:46 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965%3]) with mapi id 15.20.6455.039; Tue, 13 Jun 2023 09:56:46 +0000 From: Yangtao Li To: glaroque@baylibre.com, rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, thara.gopinath@gmail.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, anarsoul@gmail.com, tiny.windzz@gmail.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, thierry.reding@gmail.com, jonathanh@nvidia.com, edubezval@gmail.com, j-keerthy@ti.com, f.fainelli@gmail.com Cc: linux-pm@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, Yangtao Li Subject: [RESEND 2/9] thermal/drivers/sun8i: remove redundant msg in sun8i_ths_register() Date: Tue, 13 Jun 2023 17:56:17 +0800 Message-Id: <20230613095624.78789-2-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230613095624.78789-1-frank.li@vivo.com> References: <20230613095624.78789-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR02CA0033.apcprd02.prod.outlook.com (2603:1096:3:18::21) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SI2PR06MB4012:EE_ X-MS-Office365-Filtering-Correlation-Id: 0ffc0e59-e1de-410b-088b-08db6bf47fd0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uE5ktRvaCM1coz1z6Kp4trGe2eGFgNxQcnn3siuBHbrDyvOXjdOlP0IKXKPQKjJGRVj+yALc9L3TSsXK6kQgKskUvPcR/G8zpHyrJ0PXmVO1wfkdzcW1edYVjIzoJxCQV6sdqGFc51Dq8NCwU9yOud/qEbtCD9Gg4KEPrfebSf2RpVjCjiQ3dLYNyBhhDy/gw3w+vrZ+AsBntiyeqzilGt8mdF88BVOeRKhH225JSK2D9R5IrbDz99w7wAA33V41iuX/4RLIRCS9dxYOBGdKLFFbAmBFCnNMDCux2rDs5bt3swpiAI3X5nkksaYcS607j6M9cSLWN20cwovHNaLUDDQSoZwCquVGslDlOK5u8HV4QKU8M0hYKkuF0AfEruG3/e1TjMU28dGLxX0GUrqtw31KFjGTTTe5fH1W04av6lLORxBhwdsDiyqrfXoZcGPiqSbWCqhNgUZyrKWc+6Nj0hVPoaCbo8LwT7jtsqA4MFvX1dMbuNNv7h7zBj9XQxoC5b8UWyq1KJIEZvOM5WigeAhtqSX9o4CCI4Ra0MnhfKUJG8faLh4VL9B5WU2p3j5cIIdImOPzMs6BpSJtA4BkRUvqCuUI4Gi3UOM5ZeYkkkF+k1qumoX8Vf7mJ+8PAMGmyOMhiwlStOLifRrwq7Dt6A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(366004)(136003)(39860400002)(376002)(346002)(451199021)(4326008)(8936002)(66556008)(316002)(7406005)(7416002)(66476007)(41300700001)(186003)(2906002)(66946007)(4744005)(478600001)(8676002)(5660300002)(6666004)(52116002)(6486002)(107886003)(1076003)(921005)(6506007)(6512007)(26005)(36756003)(83380400001)(86362001)(38100700002)(2616005)(38350700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 5JAC5IxmwnRwaZr875fCUHhldvTEme4/rY8yKkOlfPlqLmpjWcBtw5UIsyFWBuFlSlx7eu6mEYWedTIxFn9Ct596ltlw2MhIcMqss4efm5ecTxbyFyEJYE50yoZCtzyRf5AJSVfEwcNan0m2TH1p29+tOOdkveMoEnPPd5vwzEQ/mVLcFO/jd3rmLe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X+0DWSFiL6csNydqeriusE/DzP6yesEHQlVcjnjKsk7pSQwBbHR1+/o2s2LV5N5v92wPS/j9bNFeZJKHIT+L3t8uOFw5zCCWGaTcDbQnao/sJQANAdVPMEjnu03hyp22FJSkdfF4ePWV18b0tHO7YIVVgdC5nSLTRineM/YoXX7okqIeHojQ+CWymRqYkPcRSp1/cmYg1Y0bqAXm1KoxCb0kz8za+5ozkFCDOG33lE+yEO8Pc2NhNEmmsOjDlSuYErsKDux9NaypiJdqhQUUy/GPtt/HRR0Odaq6+9VVj8rsQvaDNJFx3g7UcxfDX7T8JzhTVFiA/iphsKwEVnSs X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0ffc0e59-e1de-410b-088b-08db6bf47fd0 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 09:56:46.5974 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: XzsMOtkjbBhJ19CKKhfDiu3bB+vzcr5VCp0n5Pr4M4w3izV22zq3X9C57Bk3dJdhtLcNKw/G1lwTP4umFGvcyw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4012 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230613_025704_501122_8F05B709 X-CRM114-Status: UNSURE ( 8.00 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- drivers/thermal/sun8i_thermal.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/thermal/sun8i_thermal.c b/drivers/thermal/sun8i_thermal.c index 793ddce72132..066f9fed9b86 100644 --- a/drivers/thermal/sun8i_thermal.c +++ b/drivers/thermal/sun8i_thermal.c @@ -475,9 +475,7 @@ static int sun8i_ths_register(struct ths_device *tmdev) if (IS_ERR(tmdev->sensor[i].tzd)) return PTR_ERR(tmdev->sensor[i].tzd); - if (devm_thermal_add_hwmon_sysfs(tmdev->dev, tmdev->sensor[i].tzd)) - dev_warn(tmdev->dev, - "Failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(tmdev->dev, tmdev->sensor[i].tzd); } return 0;