From patchwork Sat Mar 18 14:44:07 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: 71623 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp329341wrt; Sat, 18 Mar 2023 08:06:41 -0700 (PDT) X-Google-Smtp-Source: AK7set8RSPEpvkTV93MSWcBIM9n1l8YvD+wI27xMM/DIapts4P+AgE1XrYXz1VOOSFEnuCr2fDPc X-Received: by 2002:a17:90b:1a8a:b0:23f:4370:2c67 with SMTP id ng10-20020a17090b1a8a00b0023f43702c67mr8672299pjb.26.1679152001436; Sat, 18 Mar 2023 08:06:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679152001; cv=pass; d=google.com; s=arc-20160816; b=uAdvX2Vj1S5xYcDtatwTBm8rZSYraN05L9fM7CdHsb429yRtPr9XP65WiW8v2aArql AaY+9rVcsLX7QKfVGnZtd+yLi0q6lH67RJ+h/++g452gxQsVTb1fO+5D3foBpwYzHHbu PSOh74HNCBGDLTRgxZC4I9cO2ZUvBQ4wuCHlA2jtz+zaeJXIrS+Of3RfCYUpka+O4FDt 82/Jyhlaz9Pn6llPdHv+HsYRWBQ5hb28OEUePXZsK/gINeiM3ESX0ld7QcEj+SBlPM2/ CLDcp+jNOej+YpfrbfrhgI/w83jkjyRn7sPKayk0g89TBr5NYqNXsdP9+3r32hTI/pHV w3YQ== 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=RGkoe2OMWlCGJ7PD5WcRuYFUzk2FY6bsdIkAZqphzhg=; b=ZPduZnhJJW1yd+NzfEz0S4Ae8IawMcfdI6uOKwrt5l3JIzzFyxH8NN2/7jjH+E0u7p h8QgqQBZ19j8aNwSTcMkwGM7RmzXYMBcPtY0bZiHlFEy4fr0dCVEFJDOsuAqQrwJodmZ aeUReyCm96YKwoFGetjOD5muuxjSgHGnNEj1mebxyiOIZArK/+QNqAF+TgXfRUnoMvaQ +XMKC979GjMBSN5jUZrjsMYHJrWEqxF3hHUJOhTzpZBTCAJ6bOGFMBjeuGuftQEoCiYi MI1skgh2z3ymaQCUl/IdFrdUCqSw8gXpp3utZABJOSIHT8UPbawI0ttGZXg/VcY8VxkO fVOA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=XcIeZC7Y; 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 kk4-20020a17090b4a0400b002342e691837si11812874pjb.21.2023.03.18.08.06.26; Sat, 18 Mar 2023 08:06:41 -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=XcIeZC7Y; 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 S229550AbjCROpT (ORCPT + 99 others); Sat, 18 Mar 2023 10:45:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229845AbjCROpR (ORCPT ); Sat, 18 Mar 2023 10:45:17 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2092.outbound.protection.outlook.com [40.107.117.92]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C529320D12; Sat, 18 Mar 2023 07:45:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R3u5cpxvOO01RkHqEwuPl6+cXb1J1rOIaPUsLDeohEHPSzCSwHNtsqGUn9QEHghJPo1GZwEbNGQFg8OrRRDCtgewTQKou+9ZCGy77v49vfAHgc4f6xdfj8BJqaKQC3m/kPUfRTYyOsjcyJPNpTay74zbiHLYNeC3Kf7THns3psW2LEJheCGyBKLMGacLTJAZfmN0qF06UAkE2YokP/UnBsndLhxmxWndDikWyZn14cgDQIlgnmdB6aYJY90m0lSaXDP3nlTR3lqD4Xknh6VxL/sy1IjouE52kuLss21k12ZvV2Qui0baZL/sPrlrUVxpX987ELKVKtoaUO12SY5XHw== 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=RGkoe2OMWlCGJ7PD5WcRuYFUzk2FY6bsdIkAZqphzhg=; b=KCFm/4vR8q325qnQM8oNXqdjkCEHkKUDqY3H7NFnrqMXsVJgwJBhxR4Lg2j/9tD9ITAomP/ElCyfWNWCQJM7Uj1kINkeYPFsUh7PaeHyPmysSubEMxK/zSE6hjQvB8cYYk04SBY+UOfIXOnyEpB/uh1xP77+BEDRBXeMEiSPIenvwzNeBVOk4+Tc/Upkme0Yksx31my96DDbUB/0hES+C41PzlR8RW5AjS5b2HYEafs8BIUkdce5+5k8RbNcuzDge4Anv0NApPrUfqxS6h2tDozdxU16Q6hoJZXvCqawYooReXQQvVhaG5A35o96cxNmyqzmw5AXvePXacopGtp+Mg== 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=RGkoe2OMWlCGJ7PD5WcRuYFUzk2FY6bsdIkAZqphzhg=; b=XcIeZC7YwrwVsQ0IL6ga79LBbtOUJ4maBxoLmgeDX42+loHzdFyEsL4uHysg7iqFsydVOInPc/LZZDX8SS6TBMTWXOOt395RiEt3ymANKjn/PY6pPE5Z/tR/yU8RcvoqDdYHGA7NNcbjr+aZvG3BC3/Zr/CjUzLPskCm1qG4N4jAuVDFeW+hBkOVpG2f7Dzd5zleDOeqYHtcKLuEnzZpivuGPoYc276+N7tWB7hdoGoSq7lGQeJTYKNsGiaVkbrkkgFKom5nnNr0vY8JOHpRfD/NdhdRhKxtG9pJsGDYlvD94EHO/4t1iSg/ucFNPKTc1AcdqN/DxybTD9zxTWNZ8A== 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 TY0PR06MB5283.apcprd06.prod.outlook.com (2603:1096:400:210::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.36; Sat, 18 Mar 2023 14:44:58 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869%9]) with mapi id 15.20.6178.036; Sat, 18 Mar 2023 14:44:58 +0000 From: Yangtao Li To: "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: Yangtao Li , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/9] thermal/drivers/imx: remove redundant msg in imx8mm_tmu_probe() and imx_sc_thermal_probe() Date: Sat, 18 Mar 2023 22:44:07 +0800 Message-Id: <20230318144412.75046-4-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230318144412.75046-1-frank.li@vivo.com> References: <20230318144412.75046-1-frank.li@vivo.com> X-ClientProxiedBy: SI2PR02CA0032.apcprd02.prod.outlook.com (2603:1096:4:195::12) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TY0PR06MB5283:EE_ X-MS-Office365-Filtering-Correlation-Id: 524a2dd3-1af0-4aea-be11-08db27bf5893 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +ulouShp6C9MAmttC/fLUm73ouV12ytCtXc45JNOGf4+Kyvxr5U1aPWsqrAs4W/iTB7VsdvAIlzI4NIj/s73HFOB4ZAOkWwRdUQ1l4/FKqzHpV7QSvmp74mV2E/vWiLr603Q+CkrfO4Ko0vqiReUDtUOj/Cyty/Ol4B82fkJIgupZmHruxbRAjDKBFDzhEqcBit44M3PULdnRG+b0yrskIH45pcrlUcaXeBSij7WJui7jdr+OAh/KzFBdTMWqapeFIx28vE3yIVeOfox922mBHJ6CgDWGnjpJqG+wKM2EITxgqccYzfrFJ417SMX2YpV79HRL3XbW2YL+xyw3nnkyJydvpSxOwliGe0PIrEU76Ei728ZFzTsm3R6Nat6dOufBokJG5pUjNC/vSwJizUbh8CeSPlDaaSjf8fmEXlgr7oOnbyIPfMbf/0++WmQbUoSuhumOQhbbdhjf0DfbWAdLr9G5j07UfTxUqLp/cnSHyUGflnLfnjkyZyDeXGwGdKNAKApayVJ0QPo+LDlkc3DE+pqbZ6YKx+FO1/8DxYfdBCUl3J7ganibcEio9hL21at1R4W3e3QFcEMCIlPvcfcTEb0G+zxkPXQ7e7QE/oYH7ENfNv92958Wts+fNwckPLRnt2poKeUN8BeMEUoiFFDM9L9WDaBGsn0pCo8H9qEsnRHJGyEte0HPDY+rZz2L3EZ99KGjasDmd5FpR1TnjUMMA== 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:(13230025)(4636009)(39860400002)(376002)(366004)(346002)(136003)(396003)(451199018)(86362001)(36756003)(52116002)(316002)(66946007)(66556008)(66476007)(8676002)(4326008)(83380400001)(478600001)(110136005)(186003)(6512007)(6506007)(1076003)(26005)(2616005)(6486002)(6666004)(38100700002)(38350700002)(8936002)(41300700001)(2906002)(5660300002)(7416002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: cm2Z5MFsbNQrliM68Ke9j+ozrhqfGQrUUmHwlFkw9oTxXKQYmQJ4pENXE5RrKHWkuv3+25BDmnBnrtjgfwoe85Aa3Vsn1v8tBRLSVeUQNartR4DWE4/1NtDuTYThGcTxPST9C7DPTFiDmZYo7QKEqOkQ87Ycjvqf70bFXk8EFwnz+3Mf4T3pTA4ZYy1yyRIlU4Qcln/meM0cVffEJfRHi9yaZKulzIyLetS/swtIgVuuLSycyJT1SY2b8V+Ba1oiq/8AK1GTX4ONr7r6WpPaqS6KWDyejwJtbzxOX/eC2o6OVAcR3RzyACoeoXSIuMdOrkJd1CNnTO5g8vTJ/BI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v/qfkolYSxNv9lhCQ2n256HF4cE01+Uu2zYMEGY1cmiZApDTIzSCRyBJigg3xttrw2tII0ze9+YBdbG8isedgl8vliwj6IJzUyyUm1h3gvTNGzLMHgtQ/8AboOxdih9Lvs1qnzVCt09BTT7V/wYyCxgo7jAVDEb5Ca X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 524a2dd3-1af0-4aea-be11-08db27bf5893 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2023 14:44:58.3558 (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: vkcmH+lOKvOfvVlAn2yjRXrwMGjzTUA2WhVqHdbfOSGfZXqqWjPLC7jszy8YTLxgPI0lC2+Ghjeo/0pnANFpsA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5283 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,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?1760718489105777853?= X-GMAIL-MSGID: =?utf-8?q?1760718489105777853?= The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- drivers/thermal/imx8mm_thermal.c | 3 +-- drivers/thermal/imx_sc_thermal.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/thermal/imx8mm_thermal.c b/drivers/thermal/imx8mm_thermal.c index e0de6ac49469..d837e2f96397 100644 --- a/drivers/thermal/imx8mm_thermal.c +++ b/drivers/thermal/imx8mm_thermal.c @@ -343,8 +343,7 @@ static int imx8mm_tmu_probe(struct platform_device *pdev) } tmu->sensors[i].hw_id = i; - if (devm_thermal_add_hwmon_sysfs(&pdev->dev, tmu->sensors[i].tzd)) - dev_warn(&pdev->dev, "failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(&pdev->dev, tmu->sensors[i].tzd); } platform_set_drvdata(pdev, tmu); diff --git a/drivers/thermal/imx_sc_thermal.c b/drivers/thermal/imx_sc_thermal.c index 839bb9958f60..8d6b4ef23746 100644 --- a/drivers/thermal/imx_sc_thermal.c +++ b/drivers/thermal/imx_sc_thermal.c @@ -116,8 +116,7 @@ static int imx_sc_thermal_probe(struct platform_device *pdev) return ret; } - if (devm_thermal_add_hwmon_sysfs(&pdev->dev, sensor->tzd)) - dev_warn(&pdev->dev, "failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(&pdev->dev, sensor->tzd); } return 0;