From patchwork Tue Jun 13 11:24:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 107316 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp475197vqr; Tue, 13 Jun 2023 04:38:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7kl9L4mVTfe4y7TgBaRhsiuQzbNplozJ9J4dhuDFjWETVof2RFMsBWae2ktqXSWAdvWBGF X-Received: by 2002:aa7:c713:0:b0:518:6bc5:bc80 with SMTP id i19-20020aa7c713000000b005186bc5bc80mr2407017edq.12.1686656325184; Tue, 13 Jun 2023 04:38:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686656325; cv=pass; d=google.com; s=arc-20160816; b=CW81nGfQDKNDBRXhJ15P4TzIczekrgX8lm9DLRwq9T4J7EcCJPTxF62sYDtBRz0i5Z cedQJ4PVjelAfGUoM4tgFIKGwH/oTNdXptDsDr0o5D1hb12LHjY7/4KoBbcDW+aPVf97 hhDeZ+slK8wIrF1uIWhrnaRrwKTxb3DzRrgqbH9X5bx0cHGe/CwmfmC1pFv9HROMh1Hs xa//1++ub5HXlw8Gw+OUngmJFeVDK9eJzSaTyEhzUe/qmWSvtSQZARf4x/Nb0pf8HmHV NSTz8R+a4Oxbf4rnbZG39/DpbIKiJti5hAhsIeMJf/f8otUt9lrpGbrz0CK09rZySkkw pWeA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+3OBtGY/5chd6gxnhXKVzWiME3BSs4Qa259qqbn6U0M=; b=uICA5oRjwLGlaJExvdU6dBmHVxeO7egZvmNxq486vSkEtOFOC7mCBAoEn2auyaOqZs FueuE58d4E+OuqPiTr/zalRXF0Xb3y8ZHKPQO+2ejbPtYu1C1RZ/itPUo4ISTaXoEeKf ufPe/swsHilJ4MfveQpneX7EVNZi1ws6iphefFY03ykj/pDEF/h4TpLqv2MxAZYSR6DU PtGN7/LfMxTM1JI27fyLEHwhgWdL3O2fUzlfJA0oPgO+rg4vSkaHLFR2awrLTQJRJQ6F a9wp7sroS0pE7l/g4DhEX56WrK4KnEGAyz+EXKSZgR6q2roCFJVIMYFjM5s5bm2S2OR0 f2fg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=hEx3HWtS; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i3-20020aa7dd03000000b00508d739f07bsi7361697edv.615.2023.06.13.04.38.15; Tue, 13 Jun 2023 04:38:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=hEx3HWtS; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240705AbjFML0A (ORCPT + 99 others); Tue, 13 Jun 2023 07:26:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239316AbjFMLZ5 (ORCPT ); Tue, 13 Jun 2023 07:25:57 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2116.outbound.protection.outlook.com [40.107.255.116]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D316B10F2; Tue, 13 Jun 2023 04:25:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KrdcDAOLCdrGNAC4OHztQKCHcqQfBpMCs0fm3aM3G9MvQDl7IY+5W1JAfxvWHPS8rkYE2NK11Cur5mIEkpsWyO6D5ZvRxeWZMSYQG9Ux0Us89b/I17Uj8NnT0PLzHnmojPz7gkDOS+NajUTp3wTu20pbXZhTiHRWUFtbURwl9coOeInN+89vbXLpqNafZSAiE2ejqZASdlcVezU1XVafrCxZhD1eKMsY3O0nQWz08kHk4x+mYuaXgyVLFO2EnhXgD9Slzy7ESm2lGF41GEbTZzTYDkiyin6dGgy9L1uiIUkeeoo3GhWyF48TbFBdfU6ZB9sfHnCTUeGU+yDX2W5aDg== 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=+3OBtGY/5chd6gxnhXKVzWiME3BSs4Qa259qqbn6U0M=; b=djq6K10NVtIfL7DX2QlfvY12xxHbL50frFKu3E9ZzVrOfY6OqKkmHQNV/uW1GammBLfozW2qXIKfjtynB2RQADv7QEoxQOR+o5l06zNEdn3YQ7IxIJYeug6iIErcCKkXxY7e0RDoyXZMxpUMl0pLA2vKYRLZTmx/Tskia9zcV0z4w26GH24Y1IzJrgTVEf5J0kJ746CeTeTfeYzOxZTa6Kj3UWVwc2T8QrOeciwZmwJiOAbnIh6ONFozUJqUEsCXr/83fThnlI9135I0GYQWt1kH04kiV8jSn8lszIbyOetIRvTc1ckVtACFbscHwjhdErV7f+PquyNI0hv4kLpzng== 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=+3OBtGY/5chd6gxnhXKVzWiME3BSs4Qa259qqbn6U0M=; b=hEx3HWtSteYa1sbtkpgJHU0ziuHZWakbSm4wvH9QWPZUeHw3VjHNowCnrozfLmGp67ET2jQ8nTuoCoSsmZXkdKsXZ6zyVuLWICiXGXWbiPSdwLgSiwBB/Cb3eh+H1Ob+npyvZ/aHwxWGDowgc4R6Lkk1aA0t4VdDbenLBJpeA+xW1XftNuvjVWUXuqNDbOCc+WbxB9IeM+bXI6bbq+N5IOs2xzZNRthRglVvLS08rBKJSe433BDOIyr+abyAxugtCQqrQJ8OFnPrGF8QKRE5S5USqn8KOqSEVusJcMIOTFVN8D5DmuutFrc/d5QeOd+DGBOLgxkn/GWaVQE1Ejss5Q== 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 SEZPR06MB5920.apcprd06.prod.outlook.com (2603:1096:101:f0::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.32; Tue, 13 Jun 2023 11:25:43 +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 11:25:43 +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, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, thara.gopinath@gmail.com, 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 , Martin Blumenstingl Subject: [PATCH v2 03/11] thermal/drivers/amlogic: remove redundant msg in amlogic_thermal_probe() Date: Tue, 13 Jun 2023 19:24:36 +0800 Message-Id: <20230613112444.48042-3-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230613112444.48042-1-frank.li@vivo.com> References: <20230613112444.48042-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR04CA0159.apcprd04.prod.outlook.com (2603:1096:4::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_|SEZPR06MB5920:EE_ X-MS-Office365-Filtering-Correlation-Id: 00bf582a-9c9b-4399-8727-08db6c00ecfb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ypsKW7WFVmH86WfolZK9ywLL0ipmzD8Zc/zJNAQyIo4SPsQiaKCdVzXzYUVDAZ0bpEbDk85osq1PZzfwSIWx6wqdOOqDIwYweaCb6y0BkvzxpLLKe6V41irf/TRJd4sR4wrj/3/hcLYrLiYJDC+UXe974tIQN7R0+ceyjpumbnMqoy6JXeFhnuWQMPwfUB0gkGi+5M34yG6x3JlWy14YHs/3dNm5C7c9fx7KX3xe2HaF+QTl0njc5nj7bg/zI57WwOBCS9ZRL76qkudj5AImyedSvtduZalfn5KLC7ALHrN9YdYsR7Ia5GcpO7yVRqZjTRPReHvKf0z1fTpe4YARygLNZVeeSajNoe4zZ6KVPvVR2sc4HIICZvdDcoM372gymrQqw2WFfjDraQo8qExBvneh7ACZ6P3Pz5kfojqk+G4jY5G4lPk+q/N2Q1kqS9zFTlvAiRushC72N3G3hR0+VnNGizIrDhSzqKAt9lsHsqPvVbBz9sFKswY6op4YeMqDMdytvnTmBVS+Z42fUMu38pCw1e/9aXYjFzRu/AEkHZnvvwsH0y5J9FP6bur+1VjzprvsrpjUg97+ZWK47rLhfzBYzraeIuUnIYEccs9qNceI5FJCqOKOxuvPTIdfy4b7f6q5xP7zcYJa9T9GqJ1U2w== 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)(376002)(366004)(396003)(136003)(39860400002)(346002)(451199021)(66476007)(38100700002)(66556008)(66946007)(921005)(2616005)(6512007)(26005)(6486002)(6506007)(478600001)(52116002)(6666004)(36756003)(86362001)(54906003)(316002)(1076003)(4326008)(38350700002)(186003)(5660300002)(8936002)(2906002)(7416002)(7406005)(4744005)(83380400001)(8676002)(41300700001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ekO4vKYrOBfE9C5+gBLB0iIo0QvEBAa0MrDh1kxdEh9nvooREWm2bQ/68WPKEtRSuQlLM+YcFnIuuG3/RwypL0S5cUshvHOQe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owrq+kubFLMUhOrVaeNLI5O9Wtmee7rzao9tG2ZWuWYVafZrYyM93FYdZn7ZPWJ3r5xY6R/U2gDXORuN+I7UtY110uHP/qktCTZx7q8aHRENyeyC96BlsNflPE51TNTRy0oFwxsg41lGcsez0uqHVB0ygN3fbXjNT0opG1A5j/pVlDK37msanEqJ+BP4RI1jiY3tE5UzKi3wxheoU4ZLFCDzFHknfCarN2LU85FqRDeZHwLTz+1qw34HTShuiHSeH9kfhl7cnlrMAl8yZZ1v3GjLs4cLqqTMqSZGhJUI1LiyWh8ALhobypk+GLERQSexg9zPeWBJoscXVxrxVeAbkatcVOVROZHJGO+l4BC0wM4FhGc9lPlLF5nUSX9LG+qBAKFENgQy8dqgwzHf+MbBJNZeJqsbLh/F9s X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 00bf582a-9c9b-4399-8727-08db6c00ecfb X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 11:25:43.7150 (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: 565GL94oE5gY84BS4jEKlmHx97jDxfRT16aUOhinK9+S83cdPIlrQRjebgncYAJFTzpXPZhcRLvHKj9gmUGcFQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB5920 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768587343278227031?= X-GMAIL-MSGID: =?utf-8?q?1768587343278227031?= The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li Reviewed-by: Martin Blumenstingl --- drivers/thermal/amlogic_thermal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/thermal/amlogic_thermal.c b/drivers/thermal/amlogic_thermal.c index 3abc2dcef408..756b218880a7 100644 --- a/drivers/thermal/amlogic_thermal.c +++ b/drivers/thermal/amlogic_thermal.c @@ -282,8 +282,7 @@ static int amlogic_thermal_probe(struct platform_device *pdev) return ret; } - if (devm_thermal_add_hwmon_sysfs(&pdev->dev, pdata->tzd)) - dev_warn(&pdev->dev, "Failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(&pdev->dev, pdata->tzd); ret = amlogic_thermal_initialize(pdata); if (ret)