From patchwork Tue Jun 13 09:56:19 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: 107243 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp433540vqr; Tue, 13 Jun 2023 03:17:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5zNESzvHeQMO3V9s5RZJfERps7Kuw2hgBgPuoSE3DYtrvlCGeBKiG6yb7OT85yhNBSGjcF X-Received: by 2002:a92:d64a:0:b0:33b:ef57:65b1 with SMTP id x10-20020a92d64a000000b0033bef5765b1mr8833500ilp.19.1686651451378; Tue, 13 Jun 2023 03:17:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686651451; cv=pass; d=google.com; s=arc-20160816; b=tB1lQFS+0XNyJ4EGBWsMt6sYwWQO3D/xXvVoEgp64F9kgdorcXAJWjAbYSBzys9UdJ 7o6vlR/NvAkvrT/WIGK9lZjsRi5YdmsutfZXYR2E2aHdRz++GXcU1/KWF4FafyXO9gjm 9SeUd+rZu86tCPN+5FliOVhK8uOrjPNAhzUtjJgr6xTWiK+BlD2Gbz2VbPWivj/0+jnu E6b99CSIVi08bBhz60IMv5udNrT8+t07n85qBFUoY8EmdQibkaDmoCYSd0x7UHxuU2+I 7hHnegt5tM3eIDeryp5a9jEEEjbrUlz53KperbDliiTL6XGPmCTcawqrbiZjvKW1KUER YvCw== 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=Jy+wdJ4SRgf2qsL63HDh5KAoa148kEROpkTGcT1sxb0=; b=FjzFjEZyliH6ZAI2VB1rDHx1DjDgEJPMFi/L2LPT4Muet+enSvNAfBKQuJf13gFkK1 o83aVMrkUAItWrZvmz1FAPqYLuNyM4jOBoHCHbs8N970fc5UcKu9ylueOj0uMWnTwyFa peCAgsob6UO5r5gjvqmFTkkN/9M53WEKEI4x3ucx8kBvisPjKadppGmOaDzyqQ0TaUNq Ga43mPQriYXfWxY/d0Toz5N+r2XGR0ENRbXZRd1/laJ1/b6GlsDwWrlvDiOMrcIjnxSf nUB8q0qYVCwZj+qK5R1cc7QcDHvnPDEydMgIYoweRPOBqHRwMm6xeuDxXI81w8D+P8QR yd+Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Orcz2Mp+; 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 q6-20020a656a86000000b00543ed4f2d90si4972182pgu.328.2023.06.13.03.17.18; Tue, 13 Jun 2023 03:17:31 -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=Orcz2Mp+; 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 S241007AbjFMJ6e (ORCPT + 99 others); Tue, 13 Jun 2023 05:58:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241061AbjFMJ6K (ORCPT ); Tue, 13 Jun 2023 05:58:10 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2106.outbound.protection.outlook.com [40.107.255.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A6691738; Tue, 13 Jun 2023 02:57:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dof2h1n4hKnnxuKWJ9cPF7O8JY5/IlxQvB7L4aRejL+jNEe2VYZnZOapJh0BuZP7SraryR9coNF238OrMpeSXmJjNdBNyMiHXTXSmKsdz0oK0ldMZ1vj46sEUPuWhMe99BOyna0rFRzrWx4qRvrvX5wDLWbd9/WrnC6pQBQGVmBcuo+/eCr/Zod6qBE2olE+7+3dDjgo2YVC6Ldd6IS5WEP5QkdCw9hB/rfVibkdMrcVqy6wl1a4Q5CVJe/KtE7iFHegvuTnITM+MAmTAbPjbs5xYayk2vZfjJ/sPRywWc7/sqGtiU/hKwwnpQ2lIxmy906AOpYgDQSrbXWEBfv4sw== 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=Jy+wdJ4SRgf2qsL63HDh5KAoa148kEROpkTGcT1sxb0=; b=VGVy7zusHJgsPEx2dNjT9ZDwanjN1edkRkjQYBVaabw2/WrNrwZ6qkIjCM2q1DfMaEZ2PwOnZhD8zhb+y4GBZASv5o50nR9mad7emkEg917K+k21NYE9ETlx+dvGcb16r3GhFhnOjm0E+zrEOzmYEoikA61KOSRBH52fyoDr/VxdLMY9OwZSMLSqzf0txh78gTRlPfa1TYifhoEZUOBfdKrj3FEnmF3CK4GsrCt9wpPAZ5+KUYvRffC7Nw74ehBuC575A1gHFZmIfetzWR+eJA15EG0JoQr434VJznJdno/JtLC8CAHXZYgEXtknFnIoWapi0bCGddoV6A/+JZYxSg== 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=Jy+wdJ4SRgf2qsL63HDh5KAoa148kEROpkTGcT1sxb0=; b=Orcz2Mp+jHez8l4acJ0nNumFl+0f2PVCa9Y7/FfqYusrqNdwY0dPaMB6ONPpFxEgNdxcF+4+Ah/RfVfGInN6Ew4VxH4uwKYp/bJrXJDppVPdJI6Ee3KNvsg8U7DOMYAtiwIcdgds0pPXDQHA6N3WWVuS91c+qGiDhQqzUWJsJNOLfohFjNirD+Dtyn3c/EiLEHCvwNusOlpX6xiuMSsAlN8JCg9FsfF7DuEuojgGpH/13OsmOpHFrHpMycFAEVrCsgNxc288OLB7DrFZGozlh6jiBEgDd8RAI+WCBbwQNI3Drj4mINVja3nHL1sP2JhHzfLGOlj2rP+ALiyAIG6XmQ== 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:57:01 +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:57:01 +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 4/9] thermal/drivers/imx: remove redundant msg in imx8mm_tmu_probe() and imx_sc_thermal_probe() Date: Tue, 13 Jun 2023 17:56:19 +0800 Message-Id: <20230613095624.78789-4-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: 3bdfa49d-535a-4611-6b74-08db6bf488c0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QuPUHxyDyt82q5l/j54Qi6mgXIdgLSJSQDqpn7Ekq6TcbQdESI/2mXh6Y31oOh8d3VZt6ghplbg8AsLEg0DJXs2jYeKAq4oH4OBx35oU62VK0PMI4eMdRkJCevkGYnTDEWHevGt5pIyx0QmOQBC8od3f5FZa72u+mYqyc5mApRLoqi/lj25BnZiOop0ppHUyKyU2BwPOr/ZQ8zx4b8RdjsN8G+mlmEpNYrLEggGwR+jNxsq+xt/6/nEjR/3b4dGltGtqXC8wev+7OIbvlN14EruLbK+XhMJVlrhSgUL0lfc15Gb9lei7UbLRWqO62SkhjhatbsGdTnkrO7htG6MdRWVCkt2v1tr7tutAt0LeeFpbUexuur581bMNG8HXS0yyjiyZoy3U3sExKexMOqFe3m3kmWYC/Z44+Fd/3muqzGO6HlMilhPTgn4OyGlHmewCiUQlTvQ0ISaT7dyK7SD0+BB55KN81PtZTspxHTwoG/9BKbevEtB9QHvd/K1Hr7Sv0EqxdXjqv9SttmeDvBybQRMjfv82LioSkgJk02n8auwBfoiBSXZCTCBMQ+7JTXvr6/qrEzoVPinsShburNooiVLMQw0wPoSjWE8jtEBsFlYtGdAy12CK/s184NgpqBOM7OfrN/rxOsBWUlo0SGY4Xg== 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)(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: xs3M4M0ia+hBnu0BA7ZHCAsvbZu8Ohy+QVSKOCKz3l11RO6xHC0gmDc6+EPWtL7BhZELXrZ6DHJQWjjpRy6NDDAEW99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90PH0axoWLjAg4URCH7f9LQenPPDO5Cq1ByXIoO5Vv5NaufoZSiQOKRx3sH9hA2wUH3uiDg8SvGS/bCbjzZpPuVYbz39nMPABOaofoVup+lDLsOoUVLhI/TPFm8672m49QiMYFKgZBdYapI+ggUYSsU6apKWXP+oHyKUFlNctE7rIRXmU1tj8789gD0G7xLbdUvft6JqqgfoyNOBSiTjqj/MLXWcbqyvXX08XChus9VC8M0StpZ9MnhAhDrLL/CBNP/4Oz9NcsSVY3wwlH0QzM9G69paPlHvWJ0e/Okv2j/vY2d7SoEEpCDa2ELfh6yNfTrgtzrS8Co/HrH3xNp5wMnrkD88qOAV6wH9LXIi36vlAMJfe1ApwXixd3Lavmk6WgQhSzsv7KLfQPJdoyTH0jlCQUO1PI62M60D8ya+Dlgk X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3bdfa49d-535a-4611-6b74-08db6bf488c0 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:57:01.5306 (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: A2cpkTIEoNWuM4x4GF37fxI6kWAUIe7Lo3pBYKH88Tv+s9dVz3dxeBcrI/QKk+AlYdIJKrcJ27KtHc0RVtIkEQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4012 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?1768582231794176987?= X-GMAIL-MSGID: =?utf-8?q?1768582231794176987?= 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 d8005e9ec992..d4b40869c7d7 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;