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: Yangtao Li X-Patchwork-Id: 13278558 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 F0D5FC77B7A for ; Tue, 13 Jun 2023 11:26:17 +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=qx5OhkDN0UxJJ1+EwcavTm072l/gowA7vOMBRVDAMzo=; b=E6DRDU9yLRssjf SR7VHNYLDj/5M2OD8x29PJ1xrAAnk23wAvvrPFx+8gOUbwDa5YMf58LSan53IAxpBPbqooEl7lAxA r3+Fo/MIR3ZLY6TaPYZo5YTZN7m4nD6pa0gUMMFxEADjDo5+N5LOAFS311iZfD0Rl3pfuXtaGHf82 3BXcS7HwvthrRM8LDNQox5O961iNyXK7H1tdkcCsaP9G8yRx97AQ7EyBfqWcNyYtU7MSe2XjL4FG8 2k6gN22g+MYO/zGIx+49gBpFbBtDt240MXa1MUO1/mlbBeRv/R+C4c8EN400EbMMggWL8bXaDNJwA uFam81ytHS1pYkVRygcQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q929t-007tt1-06; Tue, 13 Jun 2023 11:25:57 +0000 Received: from mail-tyzapc01on20703.outbound.protection.outlook.com ([2a01:111:f403:704b::703] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q929q-007tql-02; Tue, 13 Jun 2023 11:25:55 +0000 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/RwypL0S5cUshvHOQeRnkUAu26ApXv5QqfKHudWQzUDjkOjZSv3qQrFh5BcqEaTs9dlJxxvbeVAYDBuwceksplGEm7T81emNX02QDKXkiK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UtY110uHP/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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230613_042554_055764_A0F7D749 X-CRM114-Status: UNSURE ( 8.78 ) 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 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)