From patchwork Tue Jun 13 09:56:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13278216 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B88B8C88CB6 for ; Tue, 13 Jun 2023 09:57:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241933AbjFMJ5O (ORCPT ); Tue, 13 Jun 2023 05:57:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241474AbjFMJ4z (ORCPT ); Tue, 13 Jun 2023 05:56:55 -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 B570D1BD5; Tue, 13 Jun 2023 02:56:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fLTSmsbhi7i4nUUWRBTmeJkGUbqqkVCyqKzX2ZKMw5hP4joOvmDePwp4CsUHXqco/pWMe6hftnr6oot6z5/0AVmJJS7LAY7wQUSNS/TccTDVCnGRpWchcxjdmwaQC6YVhesY13f5JD+iHoqAW0MW/q/g8kpUL4BbJNRTaqF39KhOL0IZte7z7kISh4ay3+5Z66e/mREDQ+9I3mxGHtJsoMFGjoy2WzR319eEbDyEUrMEN9KiTjNBNqHrVUFeFM/zxnR8ofkCKHpRDsptV1dAqjPR4kERE37ec7PndQYjjrlibPORqCb7xotWv6Vmj/NJAMK0jRaeGcDu15EWLq/O4g== 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=wgUHWTc8w9uXoZ9FmOs4xU+yjuY46oZRm/AqUHLmhp0=; b=G7aWWL4FylmrzoPEMSaYOS59A1lDPFgi4TTx6xuBvdb2xE9F8voqV2dN7KliSEGexErNvsa5GFbOtm26Vb1bzLGU9K2ACMV9m3BvixTXIp04o0M+yWd1Cj+QMEJ+MPYg/ehtLHM39t6MviNK0NPZZb02N9vFlfAOLzD6hZEbhDcsLHaob+wxPJRxA109zvr+8SiHImifKJY5lf+x4nFq/pInVU/mUb+5Ekst42iEYL+z1pSdbxXtnH0WDl65IfettoCjY8PdrQuGNcJ8QibmdV1ucFR7O+4t6AlrHjcrqdjaYx5fN+053g55dlPoNiwDVBCmEN+07DJkGbnV0crCZw== 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=wgUHWTc8w9uXoZ9FmOs4xU+yjuY46oZRm/AqUHLmhp0=; b=dj3M1cu7b0va+GFHEXe0G4j1uKkhHW2sdRflxUN384l4jMdZpMqyRI0KVVMGjNJihuyCzHuFDunfOACMhJrehAvUSOhbh/c1/TEl38eLHx1eIw7nAjiAQlXnJPuvtHyGOEFNOUEEnWlgkdD+6GOhhBcLtTcEV6afthQND65fKT+dUjzVGu8lya4sgm455sAOB5FXC2NNgnnED7OiS96HZZkRGH7G4nWKLAszklzzDPqe1D+O4MSsrHab3RLLXNsmrdnkLn9jVBTu6aAEpaOasqlmkBdY+a7raYR+suHc9mjzXlUflJazR0hZt+9ocBLcNaja1G2XcJEXqraG4fND8A== 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:39 +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:38 +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 1/9] thermal/hwmon: Add error information printing for devm_thermal_add_hwmon_sysfs() Date: Tue, 13 Jun 2023 17:56:16 +0800 Message-Id: <20230613095624.78789-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 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: e9f0c09d-eb81-4388-4502-08db6bf47ade X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iVbodcEwfJ06GuaAFyq2QmgKS2CWgmq5KMceHodqVJPsXi/m8tXdlx1F/kO/CKjNv0LtiGIOcdvWMLuzy23pLZWpUlps0ms/QlRvjO+i+DVzGflD0M3N/a+JMvH6G6iVHij2/NOrL/b6SiBsxczFk4eWGcfbCUkgXCHErFAS2TtOGv7pJD0MIO5y5X/ZYsN3mumISuqCB0PArD+lSTBkrwbxqemTU7OngrHQghGEsf1I+NVSMudxiwJZr/JY2LpQ4/n3MFM1UZZAhU2T9I1N/AOJAW/yn5J1P5CukZGk34ORYqyKLz7y29NP4tDYDW8Alw9IYaHJGlwlqgtEb8ONquBr1ljcpgHaKFw8ZaNBXfuEJ+BA22hhC4Z9o8xWpaZ8hai34JPESBjWw4Fo6zcyUdPae4XPWonCSJnEGN1nQoS2hugYuc0zPDEvBmNGsKB4aC+lh2PpnyxApXeNZ74ZWPyX+1Q5WsyQy+is7ft0SlnKWJ9lxEA60LblkSsXb+fp46XlOV32NfQhWjh3N/j0HrugLCz9sJc7OM6TpToO9CI/tWT0UvYaxG2R+yXUQ8Md4pJcek1Nq/aQJ7W6EsyM2IXM8ic/m1J20qWj/NTrRzK2EYm3aMm39nH6+V+HVK4q 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: PkovJBVBwalxUd6yVGZZ7Zc9EOhF/vgSPkmecnEeoYNW/PcG4a74d6ytOBKyWcjZToECquF8xM1UlBRXMn6f5FTdleSLoGiONAvO7U1p6w1SdsXY69Tw4TUouTuVH1Ifsg76ccunyjfSBnEEYqY5BOjYyl0Vey3WMKV4/FvOot/r52G71aEbLh66TPtUsLWDZAHibPvMKpU5pQlpx8qalGANLM6Uis8NlkRMMfR6AtKE/93OpH2jmDYEWNJA57m2AgYRJg7DhtkigzdaDpIekWrwz7bfm6IK03LS9PmyjF1bh4CnTaeuYd1WTf09hBbD03ffe0NmG8hRQiEfgeF6a4XaoZqe3OerYTbv6C78G2QBSGNkQsm7pEbw5WE5Yogluz5OpzUwCXJBNfT4jOUVXGI7e1jJd72MEGnk7JugLahuOFGCWJi59BmC6uIYcsCzvgalQCLWSA8pAh8tWTFfmmwiFG5ZlIhARMxEHF7m4Xu2gusvSe+xqj6+tXhVHb8S9qVNe31FyLBlIo7nP4YqJORcO00vjwQ/csZkBygXmORc1m2TII8s5Z5gZaM89j9gfrn9f1osALX2mTPi+vPU47KRZXGiXrm9baJqsQed6W0m02SAC287+D4megeGa9g6dX+GFM1cOTNoNIX7aN9/5oiIRAA71kiXF2xdZCW3nIdkLDQ38alx5D5zXuyT8fKcVSmlHzZTT5+TqIzjrhDqytfDdKk2Po4O26iM5khGXoxx3t3KnIgyVBag4Bd3JskAMEfw3cBNSfts3Y/qyN0yO+36e65Ffqz4DhLEJWuP12zCQTbqik6V2eFbomNiGwNnLHxL39V6JykKW+7fM4YF2duZXOV36PZ+yo4lITJxAogUY1kvm5vx9iJdZKrYHQvDgJNLcks0FuqxUf2KkRdeYjBkfmyJ5DWf5xAjyeP/ND6QxbY4N6Qo90rN7GJ4NesPK8mKYE6rUWnff3w+bMRIZwXwA0Qq+NT7M30QbdcqZ/GHDuo9LYhVgDhJpetYRqb0XbOjEEoQJYg/2vugwD25TmEJMFVXORXDWk+EY7eVJDw7TFUu6xuCg2vgnP1rxTc1dNsgtT/ekEn1U5kqXEdLUktMCFY/Uw/YNipEqH8cTSIJaxpex7+PiHXu00+mDJwYUWBv1V3sB1QsmKuHMIMMGCm4mZdxTd0zUcUs31OJK0LRIrPV48PI4FHtj6QMQF6bCMIV0fEpUnFJgNvo3oIDvBfrOY/ozDYQWJoBs0tC45WZ6i/3SfYSze46+o/Hzn68l5ujuW0UsMx6SzRH7oiZ5ZeTH6I2WsREh1iakC7jk3ij7i+paP6M0kpKXd+x7Fl4MwPTZ0yC4tAEMSgJEyBMqvdMeZUW+eaWpxhHCmpilvXN1AaDZMB39Z74jnc+Np4kCqZza1+ECTDNvenF2CLm8qH2aSVgrsjwYakeVvQm2xi3xTdxwnsndFokYYl3kzWAIf6kq1icKA+EaPCijWd296bMTJH0ckphxHoHjH/KL/nqYnNPCt2/9SqgMu7QkAoTcobpz0YfaTFw1wXCQXYnsMpDo2JTRpj/qmkII0QAqbL2VqzRYcad5vKx/WKga3En X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: e9f0c09d-eb81-4388-4502-08db6bf47ade 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:38.3657 (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: LOfQ6gJ3ZWkmW0VC2s3VqfMQAqzhA23tWix5WZuZ0eXwAqa6I6NeLoyDfdzb5XOHAW7ho3veECp8JAcOspzWwQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4012 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Ensure that all error handling branches print error information. In this way, when this function fails, the upper-layer functions can directly return an error code without missing debugging information. Otherwise, the error message will be printed redundantly or missing. Signed-off-by: Yangtao Li --- Resend patchset so that the changes to thermal/hwmon.c are copied to everyone. drivers/thermal/thermal_hwmon.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/thermal_hwmon.c b/drivers/thermal/thermal_hwmon.c index fbe55509e307..a580add5a2f6 100644 --- a/drivers/thermal/thermal_hwmon.c +++ b/drivers/thermal/thermal_hwmon.c @@ -271,11 +271,14 @@ int devm_thermal_add_hwmon_sysfs(struct device *dev, struct thermal_zone_device ptr = devres_alloc(devm_thermal_hwmon_release, sizeof(*ptr), GFP_KERNEL); - if (!ptr) + if (!ptr) { + dev_err(dev, "Failed to allocate device resource data\n"); return -ENOMEM; + } ret = thermal_add_hwmon_sysfs(tz); if (ret) { + dev_err(dev, "Failed to add hwmon sysfs attributes\n"); devres_free(ptr); return ret; } 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: 13278217 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 45437C88CB6 for ; Tue, 13 Jun 2023 09:57:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233715AbjFMJ51 (ORCPT ); Tue, 13 Jun 2023 05:57:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240443AbjFMJ5Q (ORCPT ); Tue, 13 Jun 2023 05:57:16 -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 8F4F710DC; Tue, 13 Jun 2023 02:56:55 -0700 (PDT) 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/jd3rmLeUe+ppJaRUpt71HErX3YgkFKb1PSEwIZouPyWwTLKmI75gtQZzCHmV/kM4WayNJDb8NWlG7C0S9eJWQuz0yD797w0rTcOyUCUz2Zvt9ZgQCIqKV+hQlDi5BQK5Jl+k109gw8CjVK+NLyXQ6q+hwrYKP9tiE3GLyZGPtx380bM/X7kXK3wbzVpDYYVg0RxGOvH+hPbfNEreb6xX0duqh4xFw42fOY7Qgd7LvEg8numL/LuKPLNJlXMw52lecpReQixl/SyY6CKZJrqoURGBMM686x7W245esls3T8cvTockgm764cJiV/elO6vjzBRNptFx+idokTXKTJqD0V55f0+EZ5jyo29q0n/VKQ2K8mprKeu7J6WliliJoa5amG/FVSkQmtpurMO8gN3p4pLdvj2rOW17124XRfkyw5gR+hI0EhpqkqRPqyKT9xFuPOg7BAHp4WaI1eVREZW3d980kn5ZYvl4QiH1CdAWqEx8FluBShjgSzY+yJwD8079b1byaoPfuEFD1fhIn8I37PpiuHQPIz29ArDVdDFtLZBe4BAU5Sh4KHRhZ7eQ3LONxCeylNZ/7Wu2Whf2jhk7Fk+wc2/evOPALos7FzSw6EftMUIyh7Sv7okTZ2xuKSi1JnMZ9U0FFnKp/fm+gitI8CjJvvsVRL3SNXUBTYdFQ09SzqM4FVTAaMvbESDHeSfXnoW65Om1o0Qea6RzsPMgX+c8SsM2saygsTqrFlXStaiTr9ukDhijq0fDxI59KuDdgRMo0pzVwFJ7O62BWWJUXt+1I3hpQQ5Mc1KtNtrM0F7TUQHDrra6iG0hmIhs5/6ygRYZ/mGaIhRblRadsIKYIRJ8Ib/mLsmQ3Oh4xZmUBQJ6/hB9Xu4Rbl6K1/JXEM9TFXD/UmZSeTeqcxgTcAhefOomjUOoXhlHvvTc51IXdkvkM6GvF1mb8KX3jj4Hixa+IBX7UMvhcP10+GO0+tPTgPcm8PHmRLhaFd1S7pXu0mrIeoVNTVxHgqKwN+xmdCmP8Sggi1IdbIoYjEmH3BAdOKe6KVSsgjjdX2HxSSq+Tt4GTP2hutU7fl8ftX+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 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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; From patchwork Tue Jun 13 09:56:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13278218 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87793C7EE2E for ; Tue, 13 Jun 2023 09:57:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240060AbjFMJ5r (ORCPT ); Tue, 13 Jun 2023 05:57:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240450AbjFMJ5n (ORCPT ); Tue, 13 Jun 2023 05:57:43 -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 1D4011BDC; Tue, 13 Jun 2023 02:57:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=khbyOLYBVUPX93GhKQ169V9J5VenjcpeEmO8RBkycbF0E6gSAgKU6Gm+qf4lrMg9P64BRDMieDWnKTNs7/+ogt2PjSAG83tnew21FfM0wR8juKEX0X0/tlkWEJrPzBEHTq5ejYMcXYM95Ohd63uBak7duZRZVZ3XtWC2jPKES4IaiZRRgaz1Y0WIkY9Iq+FnjbTJEDAQvebOXwFdQAndNdtNCbswX1XDdsFkAigEeq6kqY7Oqtac5kNaf7RgLtY3lSb0hP44fPCY7C5KO/4uxOwdrV0UiCHl3Rz5og6uVcQsxzhL7yQCF9wODlpFtQQdLxZgXTr6xhKbencOujdVuQ== 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=cxBJ42t+80G+QPLqo3pLLuCg82GP7uy801jvkq9CrOtmEp6cp4WTBS1y3X1RkMzJYezJueETspjwFIbY5xOLkhub1Xz/vT2ArJT3JhyNScwxqhH2SSwBbnq7jMCiOGxqCn3VSc+myoF8AR/gHqpD+jOhzRf8Yz1ZuZZflzEkQrMD3LWMNdtr3SESdTdiLTZBtsSige8GRluUE+IbEvb1p0k16TCd3bhBAzgEPBJg7X5ojLPGD1mctrCDgsU2AdLpafIyN3uMvgDSl93c9UNGkJXt9VoPfGEtj6eJa79l5sV0s0B0B5XSCoarKnxhn8kLjlBMChLYat5xnbfJmG/ltQ== 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=TwUcDeBUef26bO4uCt6sh5yKBTpgUeGePhzCOGb1LZ/4r7yTbEKfFcN30nMIcF0kWaVth0BVdjuSU1PEaSUFCVEiDOO2lKTnXwvaXTTTbmQeAK0XY2ZK5dvy/DKEzKxAHUZksvu/4O/bmlvWtfhhJsGpCXErV0XAm4WalmvsGX1IRcnyHqw6lGQ9AMXjUkHefpfTzgRJ1gShAoZy1ZaCNDeTA0/fft7rusDt517vTXNlQQEfvl8UjzKoCqwITAY/sS+FUdoPxVjPsrB55Yet67HaW8pRumSFZnv0tPv6aGBAUK9NvvE/aar4I8rM0gITmig9kwig0qn4ouXe0DY2Lg== 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:55 +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:55 +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 , Martin Blumenstingl Subject: [RESEND 3/9] thermal/drivers/amlogic: remove redundant msg in amlogic_thermal_probe() Date: Tue, 13 Jun 2023 17:56:18 +0800 Message-Id: <20230613095624.78789-3-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: 8c2232c5-7e3b-4b7f-3968-08db6bf48534 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Fsjus5dFmEBfFKA4qpq9GakphRC06lbP0mje3pPnghpm785wWLbCf60cmkCMb7lVix0rhMp9gAn4uL8AYdZ4EVAsJdkyW9gipzAoDT37uTFQ9xCJ/dJpJw+Vh4kymBCoKz6YZR3ArdKUoQErtInjMl8yy6Up9Sj7F2YEvyoqMi6/eT+5Kmwxm2Drgq4FZKxMJgM4EcGsk77yrAIfqu53Dwq4pJ16x0E9h+DSYPuzB/h5Iq3IR2KnlUrXswvENxdoqWx8Xx93/DafPPZNTBsL3nfccwXKV3xuRlK3yUqG/ka40yJdUJykXHG92GQtq0jw3F0WwobxaeC1G0K5JcoGyFbmgDU5Mvp0onRFJxKsB/L6uXMMYnAOzeEBQdvo/1a6KH+vdoLUn1OMoP40+uJd3BHIAMsApTCbV/U2HSTNUutmXVlNqIj1q1jL7VT1BP2opbIplL84xXlsZGbWl82LqVH8QBulAGqtTzKvkzxeDSBu4r5oyOjJAST7slXxBFcfOPp/oqe5iIUfEuRyfJfPyT+l2gDBLL2QpUW1o6y+GLBmgYojhtNnLHLULrAGhZ0W1MflVEB8362CMmczy4we3MT3umYis/rhhrXYfmEGhGDqro5SE5/EHQxtNUQjDd263PB/JvNcrbasRy/ywD3nxg== 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)(54906003)(4744005)(478600001)(8676002)(5660300002)(6666004)(52116002)(6486002)(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: gTX90PoWwoMxRelS+WiGSTCbhJAeBjo9ZNisLX6mslHPOS3vINt6vW8dyrjENSN1/VdgXH2ScIBr23JLgQA249Fj5+qURDjc2D+TOVh4HPKaWl3bUsT5FHJyo+GC1YjQXjQ5N6xXWv4KVr+Qn/v1IL/a0BH2HIC3oQ9iL5R0fpjqVzjEqeVprFRIhpryTLNSlAMuT4O/Sdv1hxqAWCGd4XV1JGUL0pd1oPooClHRN3yaS1+nMWlcir0YtLGuEIkAXAqQLsVEgeIRz9qxuXbroM3NxBelJdTAUR+NCq//SPHlVEweQqd3hK9Ry4/nvh3EKrnd6alLK2VP/UlTNl3pA3oSUWKiN52iL7iNgoTfeDaCR6c59bL/YhNgI/1NGYv0WCjl/RNL7+c3Osxn4S0KUCVU1BXYnRxTspOMtk/IhV0d3+O8UBkRYEQ9PFkk+HGGAv7/+d9WBnpRU7o3jIUuIskW7600zb661/uSS8cyjZTo93S1h6Hf3PY4dAJqs7N8sfToI0Sa2KG3AXlkjotGLNeyZab2ftICW8uqGJ1jj5HRG5ysza3nr7UrLhKktJZhHold4Eozqo78e3cw+iPBNzq29By3mRfxo1dUirL49BDNa4bjgPpkqFV3j7MGvMcA8gOOJAkiBRQvk5NFrcjs+7wSsh4YccOV6Hn4V6cfaiOimWpuHRnNpK/nh3XlnhzTEYBcDxJXkFQdMw5Vrn/WujNLuqduY8bm5266T2U0A4EPWfzeRBqLoIya0f0lPt4TPdDxZp3f8OKJkY9RIyHHhhnS8ImT8k7rns3sEuNmkLqEuH6x2/dN9UP4IeI53AjbRq/pW9h9q4nfyYOP+H9azhEn4ORQDnaW3EkNieIJjHx6ygo2edIZtB/GKm2jfEfvZBXAWJfWG2kfg/2/W8nnbDT8hDIC1vgTQuu0Oo3rGY0xg23dMezQyF6f520fOfrDbBvxhQLGbtAdzpTJnQm9J9BtBWxUxbnS6wCkxFyFYLg3B6yrRUIyCwyAtpJHMhmIS22ea0FL88Sd0vLLQ06yKllwfUNq20o8DhbndakIFpy/5pP9bBCV5/x0Wxupz9NhEPjP4dsO4hpZ38YL+I45t8Xe2TWHwFv1CDuDAbPKf9eDFg/A2WloBD4ycS4482nj1ScbY7LXyycZLS9CQnGEy5yUpxHjNPyCPj4RgK1LPuP6if6NKB1L3N3ylriwaKqzVTgTJd5jJ1JvKREYdb2aHVOQ+VgHZ0+BSLnv5oITQdlK50YZujG3TG1rctVZ7bBebBi5EbenAMHglgB3S91i3fH7dUPDZAkTErMVkEvcg3hfX0R0aa2ezkzilDjucvm73jSnt7jpEzv8l6yCykfeyifH/v/LVKD4U0nqdtOkrzKfrup/I7CY0jDF9jzVmKFrsCR2YVhdoANqmcDNLfnqXYzM9aR18w/gMa82t10iDbgYgU+03MzJlvhrKaTADw4LsKuBt6MOVqR578/TYmDtHlzyT0CNGmwsqccdnci+/uVWGKAsFwxQW8NrrOW/JFuohs8/N7hAjmQGEKI5MdAn806dyy9iBRrY7HCZSV/gVEUu4LHk/RKqqDiZFFkip8Du X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8c2232c5-7e3b-4b7f-3968-08db6bf48534 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:55.6621 (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: S0qq/9W4wI/CoxCKo6g+84999w6STuBnPcH/SLaRw88OyIzRgxON9XvrWTYkfREiNkoQOfMEEo8R6XvLAn7GSQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4012 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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) 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: Yangtao Li X-Patchwork-Id: 13278221 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03048C88CBB for ; Tue, 13 Jun 2023 09:59:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240890AbjFMJ6e (ORCPT ); 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+EPWtL7BhZELXrZ6DHJQWjjpRy6NDDAEW99AnslVx2pwOpqQr1gzC97Tq/k5SEZtJAggKmSp+zalpO4YUVAALvXtkW7Iwwr9kv69nPbc5Igu4O5izI+l2IUpehvEPFaGzxHOaR/C5jG4I9XfAID1IGS3GFSpmbdGEA/DMYyOsAtTZ4RkfA/ytG3lhSKgTmndCbU9dQj8T80GK/xe69FgKtvDhp+nYv3AlE8/1iY/GaGq1bL4aSFcdQhp/bRahQ32DgZc0+GL/5kI6j1gtC6xticvUyKOm73Lcscu4pVhgtDCcIGTMxHKJEQzmN/NZY5JPewXCThT60LE+83YAYabtbW3lcAPgy3agW0rsKXD25vvhDSRLj3EnS/gD1GWSwNXTcshBT3kabnsta9PDYR4zr+q77gKyWNtendbRstDtgcqELe5FnXOJuk5Iu4ARfSyJ4UGUeLonWwcGKkq0SxTiT9XNDlU7DEtK6NYV5r92QGHhZIBc4mhwtdI2AOsJnyfmdvy1BmmenWcE8nuqMXwYlbKQBmzdD1I5w4D7ui3Mw1Iw/bdcZ1TX9/NozJs0mkEmvGfCLXviZLvquwloqAjL0Z12Ko+0sxlsUw16Ot2cCk0qNYK2EItRYo+PMLhwwAxSUk+3B4v81EX+1iR6Pg1hpdRCycadSRF3zTAb+X5HWXkEABjFblaNrQRxg2oEcbLho/WWvjnO0zNAAuSvmEaQieUAILeOifIRctIu9BKD8mJrPhDOg3/jljG5GC0+0uRmzophvbO2WfYBqoC2kwo2oq4TQrBAXiBkgnodzHsjJB16GotZ4J38TRsLF90lwgEsiW0U3bVuRhkfpj6PNThuzioUGbfi6IjFl+X5DZFsOvzlApji8JFtW8HoLtpMyG8hZhTlOxoSp0UEl7A8mBrheV1JWzLlsnlSDNaDQenmmDAJIVTyzCE5kr7n78Ay5tC9NKSdubYgzQj77HLT+6DzwYawa/sBCB0K9vJLw0l2vIwHi2DVjOyPFh8nZeSN6G+ghUt3ISNVqlms/BWbaUGL7aQEpfGXvYXeM3No8y5Z0V7qTxhIax/BKRZ8O6y7YS1erD14hwqI1hWEy4yZC/DKOmn3zPJ90PH0axoWLjAg4URCH7f9LQenPPDO5Cq1ByXIoO5Vv5NaufoZSiQOKRx3sH9hA2wUH3uiDg8SvGS/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 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org 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; From patchwork Tue Jun 13 09:56:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13278223 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3DB83C88CB7 for ; Tue, 13 Jun 2023 09:59:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240274AbjFMJ7I (ORCPT ); Tue, 13 Jun 2023 05:59:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242031AbjFMJ6a (ORCPT ); Tue, 13 Jun 2023 05:58:30 -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 5CA471BE7; Tue, 13 Jun 2023 02:58:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EF5inGOzeggYc/yeLkpbpE5ioXhoDeK+jraVyU/v2Q/B32alU+c6diqQ46W+shNMcyd2rbe/tUFWCcBrcLZz0wDNQiducNbJOO4JEND02CjPlJzbyktt4EzfWfsgnoM90dGp089JCesQx78YGv/qjZFkOe2gnz/M0eChbUJ/+9zWjKTVXLre1a2QhtHMkIlaLX2XUHfsfL+Ps5uLf60SHJCgLPp/CnV4wcAuQaTrYHdVC2h6MmNTO7SbB6+AF2pTSO97kxi475P9wL9jQ/ZR0vlcfhYuDQox3shHH763c3qMAy1GcJCCJpsKyPPtzbEq32o5gHkV6EYXbCREaH0gYw== 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=tgjRIFM7XXXA1ZiuM4luxgQMbyvfhlw0vWc2ywkdzrY=; b=KVowd4hFZRTmAXFhj5rjQ+HRmST9qGivWh6gRoBZhzmXVaOdXSq6MoU1u/9j2QcPn6dc7Q9CmVqp1SBAw6ptuo7hhTJpjT/9mMFwzsz6SW/7pxJ4J1L4t1a0LKCubnXMbzKeZ8duY3UaCnruPKw2ogsFkNiAc+MlybNtSqaFCnZwK60RmtfVMLfUKgCRN6YTGnVHdL5Q/RcWQgJUVo45jwzJtpALqef9ViquVcg26jE25bcUQdyRmEctLsnubZDFJhZAQVqrBgxBsX/DIsaQwGD1sIPuNohbRTgdaOrvXiCMCp/xe9lOSuRqurmnHmF/e/ZU2hSwyjbGfLX9Ft/tqg== 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=tgjRIFM7XXXA1ZiuM4luxgQMbyvfhlw0vWc2ywkdzrY=; b=enjQ6KTh5oqNB4pKilC6NSlY8XuoDWwThiiVOVwtBPwCoIa9sAmH1BBOTQJs9qi2Q7tLlnNBUkfsyqngOkAZp+bS19TsQCpaUFGM3IFgvJkUe2rqR3WVYKtSUbwvhCvvTH0sZ74oCJYOHIpLcoZ8n8pAXflC0lSTtMEw6NjkgW2YGsz9ZpGCbP0XKrjJsNSmPS9aC4hhv7aewajThKXyqezkh/v0SGGtW7DHABgA5ogjcG05XsPgV8t3zSerQ7bv4om8V2fbql/xKTw4/4Xftw67U32H6MyGXCesHpJmco5nMLhw7tKLLir6ShzNJWFRCmzwjB/ls6QIbRub8wp7QQ== 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:07 +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:07 +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 5/9] drivers/thermal/k3: remove redundant msg in k3_bandgap_probe() Date: Tue, 13 Jun 2023 17:56:20 +0800 Message-Id: <20230613095624.78789-5-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: 7f99ec5c-f51f-4db9-ecd9-08db6bf48c5a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HQ3QzG5rhAJ0ZHJ78PoHbF6nj9ht/8JXy7or3jAb33Uhrpp/NY6Vh22slPr2Amw0NlhkXTlnL3CuvlpAl3muI/+X9wFdGuHlU/gAdL7417rlq9jmTqdScnfIsy2SEL/kSzte/B1NcW6timisWN6P24iKPL93buuUu/AKX1QwmuA83Hk1jocuxpqhZu+RQCCFbYrjM/mEn5kLQDLI6pvYLUXn3aEubLL/MwxuPF5BamOJL1wrmm1DRfwtxaM7KyAWr15RZty7Kf4I6eIbN9QYKpB3X94tTddcyMuAp/D/UZj/47qg1/er0kfThP5aiCB020vDjuSvoxTm+PtOSMNs4jBqyIbhTff0XBjhuDg+ZmMdKvA827NnpoDIOc1MM1lmHYgUF+75HXjjwA0u/Y+UFc4ZGXRfEFBPPCFwK6gcweqsGNBeoroas0JUUhDqfxp1MGS5Cr6MIBTaI4wamzPDTqW1WRcZJVJg+fyoBF+0SjXvbNR0Ez9kUA4oWz8n6y3NFycv2cyi4sFgsZ0D8QPN/kToJheQqqlwlRfcB66FI21p+V1Qh5wOMaZroZnsFtR8glWb9NYNRTQ9X1AEQBfX01fAhlu8+ZWGw4GvcJaIyGUlqvLKSyvA6b3qF83PK34/kxP+6qZM9M21P89+NRhzaw== 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: foPhasOcUN0yPQqI1CiAOuxfbyb7HDttxQMlUNHaPrqGa9cYhTz2WYc43a3LMlgXN5jnlAEdvCgNketnLZtQW7UqkLpUsa4on8kqR7XKbhTJlkmy/X7XBe743S6Xeq58vr5XNJRXsmjyKSZqHo7Gk0tcxyZbTkSJJJ//yGbq75Ivjwh/X1eoR/jI661aWbMzcdJPEyKtTalYc54jDHGKyhaCi+QdLpJlL2YcaEmP7hS+ylQ37cNwrOk2e7inRz5F8xBSEM7ATn4iTjS8Vc440td78MGS5FGNKOeUPwzgs5b78YhUt+tFYvKlc9RhIaba6y539yYYhtufMSt/gKoTKgMLQbUDZihlL13b2EUEIdY74jtdfgxGPGvgEDTt/ojA6PbzVFEsdJ7YOU+eM5lJ68LKnTnbV/3P7mRVZjVNtc25UNzpcifL2PqODkjbU1avPeCpCLR5R/wqljxnaSKfaOTCrj9gmwAxui/+9791lne/fq8ZZrscid0sGmAHpyxR+OlK8HJY0ayipB2pCRmOsreeddIIziOnqQ5pe4frayinapLcTH6Fnmstcos9zUqvq+r0PhkFVO4RiZ3xiK5ey63feVpB8+ZPF/BhfDPOvbP1hlzdIujsEyuDl5PLlAdurBsejWDX24Fp+XfyOKqyock+ZoscY6kU+oRTuT6XtPSzUfcYf7wM829R7Jfeunfy+Zp1HA3pKDwdoO5ONFOtiNqlvvhW7rVgdxa/ZpU8zCLSYjWV08KGKTOpaMbnPs8XRUP+FWiq44/3evMvI3WMYaK7/BtbIJh9ZHJBmNfjA+RkG9401MqqKEPoWMLpia5OFvhMT3CuoJ1Gd+Uf3ZwBwlD+2jwCWqdRujavqauM8Smp+50OHjtHDKEZ3QSJGhCzl8RgG8OKZcgsggSM8+b8tL4/dvGaABg2RIoi2W1nGfxn71qzGDYr/K+2WzHiraFQGKW7rdvWFQBiN0QlmJeW2XDbV0y2fjAsdoN9nmAzVGqEI0d2/kWlQlAxuR9/536NGyL+gq2fbjoszlie4Br83wr14V32AmjjLqvdztfADH2nv+y8P8+pLQdOHiWcZI2UifpGqvixHf12gwRyGhu6Sd20HZQUtU8UUOTLhJYtgPh/T85feuh8LdvTXPiO0gwfCskPJXvloy8E1S6anU1cx0P9IMuayKRt8jcMAqIwbOmcDtSjVaQ3mu5SjgGIYbW+FDeHMcy0rOCvlAxxa2MKHr4w72OZsxjSbPdqSqsQKvub1E3dYwYqcboEupX8xJ2axlmL5Dmr1mnKyAqmLqhQbu2LCxSd5g5ELFTVoNm+NBCe8O5EDqttqMl/yytisW0/tG9bkiwsrXdc80TRbKKeG78JxUtCckPwSUcALMMaIIN5hrBcn/oXuNh9M6N/HQKcP6xlwtCt5OwVHM/JHZSE6l/Bp6xV9860Ivdrk3C4c5AuYsbc9735WQGCROjOcsFH3N92bMVzuIr2GyHocPA/xv5RW2IHIUHZ/cZC8znMZIZaoHdpQ/FzciOXl/bRkARrY5CIBQDQNlEP2raNFTAX3Lg4qpIJXokoaP8VbRYCa8ixwPvvzlKT1IulrNCL0tPO X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7f99ec5c-f51f-4db9-ecd9-08db6bf48c5a 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:07.6374 (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: r4mCyEthmO1fZs8G8MIWpaapAKi6ca4jfM8R+mzbJG2GZyLkq2VbwxIw6roFCZ2vaGIubFfwtgRqDmvG1WmsZg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4012 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- drivers/thermal/k3_bandgap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/thermal/k3_bandgap.c b/drivers/thermal/k3_bandgap.c index 791210458606..1c3e590157ec 100644 --- a/drivers/thermal/k3_bandgap.c +++ b/drivers/thermal/k3_bandgap.c @@ -222,8 +222,7 @@ static int k3_bandgap_probe(struct platform_device *pdev) goto err_alloc; } - if (devm_thermal_add_hwmon_sysfs(dev, data[id].tzd)) - dev_warn(dev, "Failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(dev, data[id].tzd); } platform_set_drvdata(pdev, bgp); From patchwork Tue Jun 13 09:56:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13278219 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84D85C88CB4 for ; Tue, 13 Jun 2023 09:57:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241761AbjFMJ5u (ORCPT ); Tue, 13 Jun 2023 05:57:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240890AbjFMJ5o (ORCPT ); Tue, 13 Jun 2023 05:57:44 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2093.outbound.protection.outlook.com [40.107.255.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 661CE1BE4; Tue, 13 Jun 2023 02:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RVkNEQF3IBA8izwr6tIsHJjS3TuEVgi0S2O72wInZ8B3PAV2ieq2aS7pPzuWKvBTW75DvJ4sRaJePpSb9k3Ktm/ik6+iI/vL9wFYHV1DtsDfpIPC9C4hPSeGcFkbvEtbpaBfeUPRtuSuOB+ygYf9Z71o5RBPxs7Iw/DZSzXFnpHliBqCKMuYU4gkYZQbYvypDJj/tR1pzlU4uFl1ALNFN0tPH+0az1bUwf2F4av7XLdO6a2UVxtVSBiF/bIT+/yvNCwbj0egx5Bd9k3aTlao7fzKEs2DIhalhKaiS+Ey8F5LitapZVzycauBOcSnlkEPoysnTQn9VMWCm3Uana1dNw== 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=++scUHKfsZEh9T42bK/jWLT1eewDohfz3H5KcioCgI0=; b=fYixvFU6C5kuuWfhTJYZKSa8XxwwF5pAut0yHBwmMucIa55Z3BCyot8vKjC/xj25/bwtnkvsD5ATbYKbJ3Fev8T8Gbd8ZqGW37s3GrTalApIMt2aVauDcT0aNrarCxbyQjkYPn8EbzVKU258anK2yGDNmhSbKQ7xyDkhLb1LPb9Y289hapeLnZwiQ5r5D71Hgn2TdDzVqY7GNl0bKpwOuJHfKev7WQqgGB5j1hiANMcWPlmg5tEAcEhwwAgbkgu24pVfFFj69SDjyoJie0NuZV23wJVPeRHPRTy8lCr5sO7QNtgKpG+DVxt0f/b7LP+Hyjh+IvbLwcqYtEOshmqSQA== 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=++scUHKfsZEh9T42bK/jWLT1eewDohfz3H5KcioCgI0=; b=cj2mSmijIvQooRQb18taHzrZHbXf1idn9nJXhQvbz1f71pA6DKZiGBUNsrNmZN4C4ZIrV6f7UVq8fzNUCa5/qSE3y8DOCZNgSfuDmVLiJGAPvIY52O/fUQWK+Lu/UjBgBYmGeW//xqjuWGFdqyemcGGma+oJAASQoNBoeRjEkrNnwxoJ6EwcTy3z2NBgDs+cf0yv5fIjAxyjNIm+f0oK3WaOSXjeXHw5ILeFLcZjDZrXEwn/81exjTt+4b1oTVNPI7KNcy25uNoUt9sSaS7Kjzot680TtlFRrk1FiPHRI6My4em8xRuMzNkmhNnf7jbyipHssgBxdD8YaOB670RToQ== 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 TYZPR06MB5784.apcprd06.prod.outlook.com (2603:1096:400:268::9) 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 09:57:14 +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:13 +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 6/9] thermal/drivers/tegra: remove redundant msg in tegra_tsensor_register_channel() Date: Tue, 13 Jun 2023 17:56:21 +0800 Message-Id: <20230613095624.78789-6-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_|TYZPR06MB5784:EE_ X-MS-Office365-Filtering-Correlation-Id: 75fbeba0-416c-45cd-8336-08db6bf48fe9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sdDlaFPf0gEDzqj7jKce8eoV4eFQF9RTwM/wHYxaDSWfDVCpTJDnQ19tr6sxC377GA0yUBG0tsC60kC71BhniUrHnPkrZa8Fs3Y3HNVxZ22og7JPaima/mNpKNOeAwZnUKNf7SY8vD+jB/Edbpfx7jTvGp7LuJ6XHx5hIcWHs+svmmyzYbXKX+HB0xxXSWYPfs7OXow7f8bv19MVGkRBPhHnK+HdN7xUr7bLzSXRRK2Q+i5YZO46AELA5TZWcEEIJcYLodaMLvpTttA3hg63FglW4UHR1GpiEovw2SqHjwjJXT3cXwQOr9HF9wom6QD4HJD/9LJ5/dhjUwrSoKhw+V6+j6907rPqapQfGm3d7AzdzN4uz+eU4McLeNfwkH1OJCfBA38hy/ipPFpqtbWjYa+JcSGrzVNqUNCE/o+JrMOwY0rYKsTw4Bem+5ZSEjyUdT/KBXPrrFHtttSRYqq2yNpKSxXEV+E4bgVl9G91GwDzXzFZUuh6nzOJiFCvMiJ2IbWWgG+wXkvbqAXIpUU5jHatfy8F6oPY5Os33LpowR29NzNrhUsx4E1CLWv6hYwF9t7CmJXlsIHTofAMV7Cd/hMlaTrATCF31ekstHJF/qGeq4lteaKBZdDHH++ccfS6YtfTLudHCBzuSSH0mw7tjg== 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)(39850400004)(136003)(376002)(396003)(346002)(366004)(451199021)(6666004)(478600001)(52116002)(6486002)(6506007)(107886003)(6512007)(26005)(1076003)(36756003)(83380400001)(186003)(38100700002)(38350700002)(86362001)(2616005)(921005)(4326008)(66946007)(66476007)(66556008)(316002)(8936002)(8676002)(7416002)(7406005)(5660300002)(4744005)(41300700001)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: IS9rsKk75EM29robJP6eFyoSAmIQjgYdarxobHPsySm2U+t6bvObPQ9Ti/PUXq1DGVXZ2FRiJzF/gQNMPnajIk5PE7fUNP/6X+bbrMQf35vOinE2Td6cEVlasqcn/YtB/zYXTapSHtX1eXLIggCpyEn6mLQZKRljW+3kIdCy2dkY8inYuQy92VXVTlJixVZO4PGFVuW4nttNJ+RPH6mcctWr9WwUxPFXwKNyI1gE6HLobXxniVryZCtO6KDMrsBFTWEgg/5pTMPi3WmOXi4X06n5pYF6mu0LmNpUXooIQKEE/p8qKmcAOWSWbyE3TYdEU53+Iaw+FZKvI9fk0TcpsTy6Oe4pF2401E15Pq/SLAY+yz8xQSH2CIAT3zDgOQcSLX9iNfODk44AubOFtJyy3WslweHUoVqwhd608LHeKzVKX9uxxXRhXIliWe1Q/LK06y3mWifb93VdHq40zWcsesDEKmG8OIYtXnJDBbqSH+jaBnrAzx1ccLXDPwqfFyyPDAs98EmdLlP/cE0faQvResS8jpFBM2EGq/qpL6wtywjB9SGc8CuexWJ+/uks3hqRNu9/Zg8hJZI+soMivsfYK2j0ZkFMdLSPfWCCuYzLJdDx2SzjDFG9fzABGcak/mF/Mi1JWxc6H9mDVX31NIUacNI9Cfz7sHgHs238YKBkxgFi2Lzq5nDLTw1bTjPWkO/Jtu5nRnwi3A1msPfqABOc4yCmDqwp92lJzykqD4v1PtU9v5d8PP7ko3kUsTO2DESE4nqR6u4heq0swSc4k6OQU2T3KKUAid62vwk+VzIe2lr91jVrs3OFq1T+Vcui/ZlyylA8F1e98p0nqF8e/o+L/B1JKMLveanLya2zRL26BzyNYmoId6txKnDyQP96a4uevh1X/0Rqx5xduIKhvPCwfLg4aVgBKf3HQbUNwOmGijK58k5hnv6kefQw1rtj+hq5+ys2gYKNQtGNuYjZWnMqIY4y3kJciV3j3XQxNUp4aeHJ5OsYivgDoWdHFfOiWeSQiSbuQeJLQp3boYfkf/RTwpTy2wIdqdh1LTgjQTH+bWKiZ1LyhoIck2/TGelpH1Bc8vznFcCeDQ2SY3bc8icPrtyRHJl/9mppkEo1JSw891R2oaBPrwlBI9gIGF6F7MEMH79vvOrokmog/UjWiGj+3Z/AG0CgNDO5tANIX3xxEwgtrW4oPGSqy8esJFG5E3iA4CkaaGNPjdd0s+N0cyUjBjR3hwHYd6Kt2LNspg/L6sI2sP/p/s+4tN1BSmcu1VMVqnf5LuZ0EePCPHLHerT67aLUFSeKEzmgH7X9J82r567TlrxtJJBvC1Wp1vwVbiTl9h/4T0gMURzhSxg081jsRfgcN2Qw37NQwIsm0OgwbjzGpFubHfg5DmTQMVloXXioZHrIm3Ov6FkdsXX4K91Kq6M0+idRsMDgiCcOGwm0ZobPkbckhpdvitGrvhjqDQr4AgQtQS+qDpTTPudpxrFVwcauIK0a6hVW7j3A8IksGfqnAXx8zQ2d3gtnfaYq9VHDn6R/RHIJva0kSWEeDzM8e6m1qhUbkqFuaaju/k+deUVtp2Uhqwz4D/av/2ZXSYXL X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 75fbeba0-416c-45cd-8336-08db6bf48fe9 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:13.5933 (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: HTN9tOth6tEWoUe30hvVaVRWA69bIOTGhQxCYMs70xkupKmQEEBWZaucFk8KmT22wtAvpODqC/O2CujEYhKkdQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB5784 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- drivers/thermal/tegra/tegra30-tsensor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/thermal/tegra/tegra30-tsensor.c b/drivers/thermal/tegra/tegra30-tsensor.c index cb584a5735ed..c243e9d76d3c 100644 --- a/drivers/thermal/tegra/tegra30-tsensor.c +++ b/drivers/thermal/tegra/tegra30-tsensor.c @@ -523,8 +523,7 @@ static int tegra_tsensor_register_channel(struct tegra_tsensor *ts, return 0; } - if (devm_thermal_add_hwmon_sysfs(ts->dev, tsc->tzd)) - dev_warn(ts->dev, "failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(ts->dev, tsc->tzd); return 0; } From patchwork Tue Jun 13 09:56:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13278220 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 522FDC7EE29 for ; Tue, 13 Jun 2023 09:59:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239008AbjFMJ6d (ORCPT ); Tue, 13 Jun 2023 05:58:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241438AbjFMJ6Q (ORCPT ); Tue, 13 Jun 2023 05:58:16 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2093.outbound.protection.outlook.com [40.107.255.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6E951BC0; Tue, 13 Jun 2023 02:57:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bsr0DxNNeyHpZOpmzcNJri3bcdaeV8GnFsjT+FNssXcL+kgshdWkXm3VZGSnCtL9+3G7vHZIkMy/t4boHp5wl+YhYYfXSw9RQbUnjg1cMQ+i3RUGGyXNnG2iFVvTqtmun5FuXb62qnkcBilaBlPU/EqZ/GUbnLY9/qqwqT8sFP0ZAc7T51P0GjINt53toM6LTxYAyd54pjhJSNXVnN15WH8vpa3u1qvellda/3p+iiwoROqFu9pfF/RartlVnsUXD2ueO+LBQv9pC47SIjhh9w6VuFLbBOK8yu9x6bvodP53eVLcszojSnFZVuJFTmFtn2G0muqqcXOojo8GxB6dtg== 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=BFRIpDy9mxKf73VaQXtUPoyL7qnzSdTF1HT8l2XaQcE=; b=ZVYMd5TlkUOgqD95T8OPOBhgcWDCiewzYAecTzQYjWGzZQJoAiEJGB3pqaOAt8KnYmUPf4te752jCTDTdAdD6BoeT+mUQ22W8Q0XSZKi5EbX2CWM7iJ8Ecskb6yR/rZWO0LVVJozODcQO0RIv29H36rc1hNWJo60K1BBCqRSvny+AbV4fZRLepXEklKhAJN63pdLIc2D44y4H/1mMHXTeTfW6I1YYOaIk8UepjMwuBOGRHvG4056ilXKXF6jRFD128n6Aj3pLG7JMuLJaUHpGj/KJxRc4XmoQi4goKcQRuBQsDgUxU4oVo//H0pmmBDCrvnZcsIaplcmxSJSpncxCA== 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=BFRIpDy9mxKf73VaQXtUPoyL7qnzSdTF1HT8l2XaQcE=; b=kP469xEBH3FdjUQ1WKcAzPHYgd1L9KRqG5pmY0m6zfyC5nviykbfC4V7aJbah3zyU/96vppbQoNm4ORUcaqi7wJMZZ5EdHyv6VsXOq1/Hvs1csd1VBQWDyF7qg98O3AVon1Cf1tB6SiS++O4++WjDisuh0PrpIpoI0HmGadc7TKs/jHvotAj9DvLdqIAonS1vvHA6P37wKRwY2eGMXRt14CSllX3ZtOxCANpIq/oquUsBJNJd5OkaPmKV9J03hPXmMZb0ypOy+N1dpJI2I2C0/g4Nik0wS47HcVXBUwjqOWt/dS/KeXz6LPPj4Yma9jdp7dlg/ZE5j20nWJ7In46WQ== 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 TYZPR06MB5784.apcprd06.prod.outlook.com (2603:1096:400:268::9) 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 09:57:20 +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:20 +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 7/9] thermal/drivers/qoriq: remove redundant msg in qoriq_tmu_register_tmu_zone() Date: Tue, 13 Jun 2023 17:56:22 +0800 Message-Id: <20230613095624.78789-7-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_|TYZPR06MB5784:EE_ X-MS-Office365-Filtering-Correlation-Id: 5ed2beca-81b4-4c9b-72ff-08db6bf493d7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: b7MSZC5L1SHrEbhgs/xvu9wdsFYP3eCVUnXtYIlpjaDiC21LAxXY6kQSxyDaV5XpiUV4QbsAkJADQHWYAJFFNAhrQoVhAWIkZP5vRdRQgy4VYuWfFqdlDLuOL7DSiESUBp9A86hNuS0lvMuJiK3zqeDbca1KGtIniHVSairk8jxe0Emmlqk1O1dxuNOy+5HJ4JJe0WM98mmRpsbfwuJT1v/nVTxognS4LbYQUaHWdGZQ1pH2K07/l+xtd+Hl+T2k0QyCJY3f5aZqlEohj3CGzyB6Oo497s0/BfzhvnfAG/VjJsjyuD53a4qX8pcu5BI+0ndYwBUbw2rEtoXnBBZXoNsgdcsn7TihK65nK7NUaaMRbsJfOKQdw7inNTJvyex+tc6i2eJ1KFkjRc/QKb302eJok79n103xbgtTT585bHZh9mAIo5LiENlYv5I5tqmwRlvQt+0XuC7v++fI02m76y3yUJbbdwCMVKqdSlVoWwYY/a+fQ167dnfkueSeafL+1tXAHj6nSJ9LpMJNHVCEKFBtpdxdH2AQW1q5urbyVrkGX2FG3Cl9+c+HlTZqUzS9yHyzYjwoLQm7VGrh/Jk2t/mPfH6RhJKmveqRWGlgVQ0e8X/0xQ1duD4P7aLyuAvAkHuENQxd25bgUofkzOxzRg== 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)(39850400004)(136003)(376002)(396003)(346002)(366004)(451199021)(478600001)(52116002)(6486002)(6506007)(107886003)(6512007)(26005)(1076003)(36756003)(83380400001)(186003)(38100700002)(38350700002)(86362001)(2616005)(921005)(4326008)(66946007)(66476007)(66556008)(316002)(8936002)(8676002)(7416002)(7406005)(5660300002)(4744005)(41300700001)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: oKXZzLxqwhV1eRE+l8Z8eHlE2yio6SlCc6Ka5euJfjF95XeRx+DYeSXjgJV6BGNAzjuD0oBmGkL/lq21r+7qfJT/6hQi7i9l6mEWg0tcX+Zk1xZQocGRWG3SkwT1WqjWTrMTMTPVfUOaIDKqexqCAPqn7GwM9IGVzFprZPJ9aqA96XPcdGLUl79rCyBBl8UIyAejzpxVfpJyDcCDvgA2/YzWN3v4K1EczOt2pvAI7d5Je5lY8EPCR9APSheRbB5kPoVlrmKu+HDWkwh1Y0HueuofNPjCzNob1LeAWo3eskJyjX7BBuzdryT/nkbGhLZ0XrB26tk5jAqNcIlWzwELqaJK0MwEW4wirqxee1WD/gtm6NYBOirkn55oM3Knu7GNo7Qftq0nuRGOQ2x4CYAlW3RHpXUhHnY72P5Mh/EVYfOqTaTlW00YLVzOhQ1RC4dFDL9b3sdOocNfsAi917zwwzH0SwJDkYoIGARk0dv8C3/RMmY4AVAktt3RbNKro1ZPHk4cyke09rdjkArDYE0FGCBKNiY4C64xSQXQ4DXjNWqBl2fnajx3MKer/++8tDR9OJZkar65nUjH+nJ3i0mkwn18M/gddh6iQ9NNXL2CL4ScuDWumOSAZeKG8PJvUR7yvr/8zRvCkbLTTHTxstV5mLrlmpMkTNTzXr757bkRSo1kHVEo6CbbM3BE7uoQARzNMoQm1V+y0YTm46M1owKeHDJ4u42H/Dhaexf3Gl+TT4zR66HUmpNbbHkaVRx9aQzhqVzTFXnxCkS6Wf4/hX2ZrzC9g8JvROmW0IFplPe2gFJOFDGg/MqgCvN1iaKOz/kcdtvrW802qR6OfWfKQ2LU8U3vRbn00rADQMrBeYuE/AX+ICcYtPCyMUQxCzXRnqp8k2LA4ycOLxRLBMqKpgWaPr3OZRJKv0yTYkN3dBb9ZWtv15cW4N2JUPxHAqaBiik3d82Dq5GVqaPOA89qamaeVQEhOq2s5VKPk6x8GozCuNBlhtx3oFct4ckcK993m1O+bY8vQuKgHuWMD6BZ6HBLZgaC+M+GyjtSMSwgfmEkrxV+omT9JXmVLmirkcvvjw0dE4qEhQA9tE7O5/KK0c9WumnjjOZ6WU1Lzp0OV9u0Kc3g4XHBe05MMg8rsEFho4FYZ93kmqJrWts3E0B0nmfVhQAd13oI3BisCAcR9QDTGzdGRdExkC6TLu8Bj5uas7YZxfqr66HPYlAxlTyDzXmPS21bOFPJHTl6UKPx2r7bGNgADiqocMA25Py4bpZ9OIjV87oWgsZfSMvXzhQRJIYGESW7nD4tktn/CPanGo2Pm4/5Q4ZJygmaEcMeI+A3CocuJfZVxiZGwj++gLZp87AEe5kQpOX2XkD8V45cDF2sGuuz/RB7fSpWgnR9Z/KNcJ8yPtYmUC1LscvDnehg98crB6CuDFW0EzVl7KxstXTtBP9LD6BnknaFss+1ilIonLnS4cYkV+KOhKyXuvKq5Kp6p1XG+HRif2YTkpyQR3hSMbz4jVEOx/ltEXuZHPbHrqY6DsVyVZEYmLLK3zshbnjji7Hhcz87EphHeTBx32a8gYy8njP2QsD2W4olWgKp1JXi X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5ed2beca-81b4-4c9b-72ff-08db6bf493d7 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:20.1767 (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: hdRQfjCjLUMjh+yRBMmdmD1TNdn/+Zd04XxnQ99UZIGExwnKLKFr/HfQ8suvXK6U1NkhgttKPqf6pDyk676SNg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB5784 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- drivers/thermal/qoriq_thermal.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/thermal/qoriq_thermal.c b/drivers/thermal/qoriq_thermal.c index e58756323457..61b68034a82e 100644 --- a/drivers/thermal/qoriq_thermal.c +++ b/drivers/thermal/qoriq_thermal.c @@ -157,10 +157,7 @@ static int qoriq_tmu_register_tmu_zone(struct device *dev, return ret; } - if (devm_thermal_add_hwmon_sysfs(dev, tzd)) - dev_warn(dev, - "Failed to add hwmon sysfs attributes\n"); - + devm_thermal_add_hwmon_sysfs(dev, tzd); } return 0; From patchwork Tue Jun 13 09:56:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13278224 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 807BFC88CBA for ; Tue, 13 Jun 2023 09:59:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240972AbjFMJ7J (ORCPT ); Tue, 13 Jun 2023 05:59:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240669AbjFMJ6e (ORCPT ); Tue, 13 Jun 2023 05:58:34 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2093.outbound.protection.outlook.com [40.107.255.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B49C11BF3; Tue, 13 Jun 2023 02:58:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E694vZwLb9ZCcdTB5FEhq1igtNrvu0wZYc35D1oPEMB+Psg+02qVvwhYcO2GWHaH6zsZ8qm/wvaqyrFA8Q9ptvyFso3WFAIqBGbMM84jQdL/ZnZxo3aGOmC+3H3FSMx7z4rL2pGuKLA3H7ToDUhadZAK6xAX5qyVnp9b5kABbyJJ5HC4Dki9wnSIBYBXq3h4xoWwooMwyA7LBGt8MqptqQreSps7/ltuujwD73wAOngaex4/v93ztjwUZSk53mNvzPaohP2AQODlP2zeFrHmRyDcatMRc0usVDPRC06nYK8hlpdGCGQEWUOXouxghC+qcagDfRs8tIarzuTx3cWCwQ== 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=/rD8kg+92/T4iqfi8bXxqd9k54ysUymkpnPOGQgUuiY=; b=UzaOUbNIYpLnI/CrGrH09f+W+KEGiF/wXvV0skfX27j/RX1rYJTk1BDekYi1BqONOTG1V0kMdC2Xwm3YIsC6O8hYXyHxPWtZIQAacBF+CRf6prrlGg2iWmuyjAlXfWjF13UNNgVTmm8466JSS6RXE1I59aCgtS0+PD+cjiLSE5TBXHJ9xWJl4/zX8ttQ3QYx7R9umFWSB0H+RCEA14+DLUhTmKkoUjYuQIDtgJJGwaQ4dlIZXC0zzR1SzkGx0q+nqVNy2cRrbjxtT1kq5c3c3miQgFtzm+OoFsrh3+PUXnCZCt97PQKAHQ+7Ivh0LunKfpJiyTe3z6GE9AQoXXm5JA== 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=/rD8kg+92/T4iqfi8bXxqd9k54ysUymkpnPOGQgUuiY=; b=nUk60FHS8Jd3w7Os4Fy7usIlo1uA4RHcUSrrffXyp23NfFm3pHAtfuU8V9vLwCVrMZhNxHKt4TLV5/f2a8f96qNYBDdN98IRlEegfV/NCNOLsrL6HdovksAW4E0usxW552Ncc5ZWQVLAw863bxoOScu/67NI2gucx7LEUD5rd4ZpuvYi3QQXzoTMI8YWwHach4808xq/pZUgvfrw4MPJe+I02D60fu2uUq8apP/+L/2R9v5Afneou/BZBThMssd0T5ChO4U6BqA6rDcl3KCkezfvIFXTF30LJokdRCA28ekLUYtwRSbur0/t9ZKFbP6NUWH4O3nWFY9siAPufAVzmQ== 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 TYZPR06MB5784.apcprd06.prod.outlook.com (2603:1096:400:268::9) 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 09:57:26 +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:26 +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 8/9] thermal/drivers/ti-soc: remove redundant msg in ti_thermal_expose_sensor() Date: Tue, 13 Jun 2023 17:56:23 +0800 Message-Id: <20230613095624.78789-8-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_|TYZPR06MB5784:EE_ X-MS-Office365-Filtering-Correlation-Id: 74f4db90-d6f3-4863-0bf1-08db6bf49766 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZL4HtP2FO3dZKAQzurKTEcq/YKD10GiyfrgfcsBfErHEHzApElliHk/67L8Qr+VgrVShFHPZejof0HyzoTUe8VA5mpqVjUwEUckTQhgfeACKdLwFi6BDFyBldRY5L5Shd5AJRfYXDYK6ITfv4o83sZ1+jLibDCF7m7FhXES4MKKrTBlioVNsadp/AXxneR5A16xwqAhxApStrxcUOt95jFYxUaDs8COXlCeVZEZymsOCf1iggN0rDa1fuahki2LUyTUhjhxo+xtD8vETMTMh2bQuDxyc3aMK+PNyg4ujlQXBT6hwUBUqbOqKzLW6u+FTk35wJZ7fuExqNk8W3nwanm0tfr48YKPbwYJ/aDU5Qz8NWaY7ED9vrqPhQMaQrS3E8HL/PSGR5RwxisHoWXaAtSsgR81pZ8mcFt0XHiNEGO0/7aV/ZzxqXRMjfZ22ddiJpGmnKEfvAQKPkQk+kMAdavEY+XDIUJmlRQFwHTr1i5MzBteNZ/oAqx+atu79nnU3lYaak1bzoIV5k+nHllt6F8+ZUiQBAPyzQ4J30SHsGcWhDN6VGaUxb7berD8Ou/DWDT/DewRU0KkTzxwYKbAHZ6lYNUGUu2KQRHBX/3aFznrCDIXVs315wNS42tmvIcofevX+7YprUlACApPRc9aNeg== 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)(39850400004)(136003)(376002)(396003)(346002)(366004)(451199021)(6666004)(478600001)(52116002)(6486002)(6506007)(107886003)(6512007)(26005)(1076003)(36756003)(83380400001)(186003)(38100700002)(38350700002)(86362001)(2616005)(921005)(4326008)(66946007)(66476007)(66556008)(316002)(8936002)(8676002)(7416002)(7406005)(5660300002)(4744005)(41300700001)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: cMzkVWyFHPGX/nGipmkcheHbSzfBSeSbbHnC5GuiATon+zpje/epsxXfTzbc2GZM840Q38fYaiWlfff0ZxRgtwgBK3l/LcOvAK75cHM5lHHsNfyp3JvUQq6F0fciviF0Y/VJGST33xUaR6IlKGqu/Mrq98u4n1Kyq73xA2fbY2BAIRwOTnk4r7gjywrzts2X3KsDc9qSdZnMVZMjvjX5DA9LECO3vOaD1heqgpyO+BKc/Wll/dbCbsECxAbuGCPpx4MyY/BR/kicDPok/+hYP/szkI7e7es2TxOWX+nHVLOUJ+hf2Sbxq871KC/emgXdLnNOXfKVCLrJ/0jG6hiVoKT8wR4VZfADOrNxKt9cmyeBithY/URYvLdaCFHjhSzaitaqzfijLcyy6atvUDLBG5TdHgU3qvmQwBAyI+5c21ORnGraEuvo2nSbeLodJjFDCCFMciJ+OepE9vqn0+wLKzTVLPuJeSYHGxg1m6MXCtSLGALn9hZUD9c9ehsWCsbaOplfF8NmExXp25vkQQpMODzyLtgXHLb+h+HFXVUj2Rh1JcYbuCeT9+wXRTDktm22ZVmRqNGSyfvEnp4datYqjKlrQYKGhIC0kiPvPkLljQ+9bR7TGrvWgv1kTvEpvXJfFu2aktCN2ndB4+1G87OTxurJdjLLVzeD03nix3V/27ESANCn7fKaZs8VKGmeHiJFElIUjJTTnjZt2RMLBKvwYgkon66LIAVOLiuccIufnCG+0VLah/Wdep1hojwWYSlK9AbWPWEqU0AyJTNdWhKVqZ9vIeEbIIe06SsbRuxuXg3l9VVsZTElqIsxs0Nsmd5d69xTDFQWVp6QVO6JskBnNhIjC0rlK9wvm7xUJptitO5Q+IJP/S+6gqctif2qezQH+DcZUSpGMxDrF8EBeRYbYgRfC+lf76f1fdQXthx9xOiQF5pUzKwbbKdB12XNY9w4y8aL5Rul2hKcA9k71fO7vPmCUAmjRfEdTG/6AEPH9L4yXFcSM6YDCnRKn5hjMrnTOqauOQ0DRZRTGQbdPHuRK9hLqR0zOpfL7CInSC9oAmRbFVCrjtFaVxBJUIyUSmfWkgTzjD6w7HUS/vyfF8arvSoSzdx5AVz2Mj7tYndMRTk2K4w1mEGzOD790JyykrlCtvNdvKDnPeMnPAMQqBK9Iq1LiCAacPmc2zqMYcxtUFSy0z1i5WQb7FtCzVSBMi/OwW6uJVJhunfUQq3OQAObDmKnEX7F2Dg6MwYIX8+3k7dnMAitBhMUfLArrBKSOCmy6QV/6QIJbRg4lxDaD0Oi2eB477l8C2IvEKu4+2BCjrmyKbpCNPUA5PIdxeZdpIWgWFxjFU/E1pGO4kKpSzKaGp2jXpejToCwsPOe6jvO240XBVg87E/KnCn6/z5HPDCyOFgBMw6iQS97z/ozZVyMdZbqQrYPKMjF/232qfR0CMZM70pwOmCxZi0l/v0VfItBr0qh5A+np6okj0AuzLr18FGxNBgXM8uwvSJNHot/dAKS91EP31LyYgufmbC/MhaBvlHPiuZNr4N1rK5QwBajPrx1W9MqIwiV8auFW4hqa84j2kotdWSYXhK6KoEflm2q X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 74f4db90-d6f3-4863-0bf1-08db6bf49766 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:26.1588 (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: nPkPz7ak3gSNF+X2258dv2DOL2lIvTYxabPdmP5RJGVt8bSXWeJYFYsTfZZ05/J04xhnHN8Kkb32/WrqVRVj2w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB5784 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- drivers/thermal/ti-soc-thermal/ti-thermal-common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c index 6a5335931f4d..d414a4b7a94a 100644 --- a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c +++ b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c @@ -182,8 +182,7 @@ int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, ti_bandgap_write_update_interval(bgp, data->sensor_id, TI_BANDGAP_UPDATE_INTERVAL_MS); - if (devm_thermal_add_hwmon_sysfs(bgp->dev, data->ti_thermal)) - dev_warn(bgp->dev, "failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(bgp->dev, data->ti_thermal); return 0; } From patchwork Tue Jun 13 09:56:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13278222 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F387C7EE29 for ; Tue, 13 Jun 2023 09:59:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239911AbjFMJ7H (ORCPT ); Tue, 13 Jun 2023 05:59:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242061AbjFMJ6z (ORCPT ); Tue, 13 Jun 2023 05:58:55 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2093.outbound.protection.outlook.com [40.107.255.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 964F410D9; Tue, 13 Jun 2023 02:58:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GMl88LLGO+VkFA/LSEsI/1tXRg/rvu+fJ5QZlHJLYjFNqC2oa2Tz4dIPS1++joSQ8mfZC/1Ze1pkhran9Yo6UOzJ+tpr5g8h8vOyJKWgGA2OOBVmvvh0+MDr46uNcfLFNxzRvbp15cRjrk+5rm3enAR34KiNv//hMXZl5CRFIbcdFCXsKSoI7F9h2YDZ4puk0YvTc0fYXQCMxOngQeGgsxk2bsL2EHwwU4OsK72i1yO4S3qBzEuqCnrVMRx1+LBBCvihYZc9/GT51eCqcp1H5rprQZ+aNnOSvdWSztMgLbXERjXFFJv5pDUlcaJ4ETaW1P2/e/PVTt5V58b6JwCppA== 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=Tl2KpQYH7ric5OuONMrc2MSFADsGf5tu1y8+Hn5mUS0=; b=Lz9ra8pXf/BNe/rxnu13p/GjSpNNALAaDWdPRYTvNCItQSijm407rGZszQgfKaDLosevaf3n5D4PxcGAYAn0mXxVT9GCCGpLjzupFSKzwrLbMnl4bucJDhWgpvZD63SptgSLf89tzDjP0HTU+J3CEMq6cTu6HJxrVXLRTZhH8ZHpeqtbuhuWwyFlNse8uo5PhxB7mi7sZylyn+yXktKaDqJDs0xL5RmLp36J94F1h62fykLjttG168LPUGEywyLrQuzxjPpImHci9ozEaqoIvzYavUZhBAQPkvfFRTPE74gpeM6XtHvrKDThdo3sba+TmfY3vOslyEASkpMhM+DMzQ== 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=Tl2KpQYH7ric5OuONMrc2MSFADsGf5tu1y8+Hn5mUS0=; b=kUqZnjTvYVCK55xH3h13VQimbZQoUvlTPHYfU3wOZHcAVB8OvDpL7Yhc0GH/urkhR0C8svOEbnezn/ayAhPa5u7cRNvPIC3eWT+TpVNYb2VcBNqR7C0v7kX1kpqW18iTTrFZeLLfV/FrmzSG4bPtEfHL4f2X4yFRqy1omHEUHyeIDtuaeC0RbLHST3bc3Yt3Q1vGibbGIB9bridj/ypDv3MReip7JR3cleMIg5m4wUe8u6CweHJqsbRxh9jsiAHp3sbdEuqy7CZ+bTymN7SCHKCPmfPHExu8exRXNMe2T+oPq6fjyFo99UPqAmQnPHTak0CBWUSCoWY3sy9ZJV1P4w== 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 TYZPR06MB5784.apcprd06.prod.outlook.com (2603:1096:400:268::9) 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 09:57:32 +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:32 +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 9/9] thermal/drivers/qcom: remove redundant msg Date: Tue, 13 Jun 2023 17:56:24 +0800 Message-Id: <20230613095624.78789-9-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_|TYZPR06MB5784:EE_ X-MS-Office365-Filtering-Correlation-Id: e7a96475-04b6-46ae-2b5f-08db6bf49adf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YH1gcID4KzpBHmfLrw/53c3yNWpGG7NxfTYjWNXdmbZuhEGXrlArXSJeNQJVHR36QI64Ln79q+7RgoERqwtHcvmqJKVcESMXLbKJTvjo8pDodnI249HEGHrLzytq287yJcgsBXrK9zmwxzJsnq+JDmo2pnxjmrBPQoHjNMP33Xobyj4yg0cLh8E5GGiLTq900+BYov1qZ4bf0sP5Loh5a5w8db+sjz+zffBzD9ybrlVcf0gAruj4LkA+AoC/g53KuUg9H1rWaXr9rsnRy5xhCWjjks+dAOPjaEGo/WaRrOJZy/OutlxG+FjPXhT0uJmqIhadKJBUZs/I2eOwKFcc/lVU1DBky+DWIEvxVtvBA9VxoPnpVm9qbL+avnCLYrl8ed3wBgOTMQqmluyr2IzBO2LyLo3qDgKn2LAOKIUUrgXLlvxyYIVFbIEE/SCJqgtS46xmbYDwUa2ggLRRxTTq1Mk7QV4QBbF11V1Z01N7alUxV5it8KqEFOPIj/KOXGKKbCymTMrSof6IzN/Y9ljxGQY6b6TYg3pnxC4Y+D6JxFmN/4rutJtC8bc8JCFmNVOKmi2VJw5Dyf5ehzLWyvb5JuNbX0OuXb/vvCcnI3wbSNpIRBaMPY2J3DfM+KuI14Z6jg1Lbc+vsft+k9LngZ7/eA== 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)(39850400004)(136003)(376002)(396003)(346002)(366004)(451199021)(6666004)(478600001)(52116002)(6486002)(6506007)(107886003)(6512007)(26005)(1076003)(36756003)(83380400001)(186003)(38100700002)(38350700002)(86362001)(2616005)(921005)(4326008)(66946007)(66476007)(66556008)(316002)(8936002)(8676002)(7416002)(7406005)(5660300002)(41300700001)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: oI6nI3PanyH/QdikFe3oKr6ruy+9+rk97UP/xay6bI82BM4hKGqyuVISkewFdSkHV5i2JpffwTh9vg5oh3olxs5X0opM+PNzC7t5YB533WCj3t/OmmS9Pv2AdlVCs9aVgJ+CQ6gHTuqjnZyCJmunTcdc83y16dAtkh63JyGk5FjD3X7IsUms+mD/JmN3lUy1c1srSPVi+udZJ4q/tFKqqdAWYIhcBp04U2ajYqasaIoLTpHdzktrsROh0+IKyou86XxkFUcloS3ORjBNfG+D1a071W340qKEeAWS3VwjyNx9GbAJI+MvTnXyBLSYkHhvl1J5joTrThvzBQ0jCmNrBmOk98ymIZACutbJ/gl5S8fmfvcjAGnUKKLCeQ28WQcvgnM2hIvwt44ijYQdZ/4x9YL9DFxWI6TfhPiEZC5IrWgoBb8TomEu6WUJN+/wJN9D6QSz9SxyqPsgcNKpErtuhJCCJQdSMWSJoDFTI6SoBpzZ7W2NfpaDMLhFXdlbY2nqBEbpR+7XG2t7E3fbvEcYWoj9oStJCJ00T5g2bVj57OLpUPQOoxLtusOPAMCmQ8HonHXctMOuFOLAZk1EkK30n6eYcTlik52/0SisWxx7UUzf4shXKrP2u86HXqwT99joEdY2JUcq+KGgXaOtvB2VlhVTvp/0z06fD1snXauBsDx9Kwm3ZOOWyLDuMlkow3mnn2aOTZNRaEpoQWlCGzqmro8GLazeQXvNHTINgacexgWsqDawj1AknLeAQB65L6jjv9/MkSQuC9UjOWjGbDsJUNekyLdk3gBzM8QYQDjScN/tPxv53/FT0NIlsSi5Twf/uIt+ESs1203rXchtSjpazBYtog7t7NsT+sVpR/CiquB+igKUtvIsyCs6C5Tynm+gXCXURTSG2H/bpJ7f3/DpEie5cXuuA1SuEntWZAyDyxuQiGoWHqOngOuKEDRjqfAQ4GzpeCWxhukySFVjRFa+MaKHqkglxdr+ReIUK4pMZ7k9pcF2wGFrgJSc0QNVZK5xUy4TF2NczvUcMui1zbzqdK0DKUcdi9l3qfHVcNsHxNsM2Eya8iL5hPCdTCQntXdMd1OF8B9Y1FWO+BFUUCiPN24LS8nNceqXm3BEGjsfzK6gP967nTE+lsiy9iYSdBwA4AxDbWB6aAwlPh0/TISD0/OGS1RcVgD3dUQ2q7glHqFbvuIlfbTBdyrQND3qb/TvzZNKSSo14JWraOBpEE4qMb+m+0Z4gnTbYIkJsrrAFvsNrMKn32TmcYb20kLEyYb3T1BH9eoyDNUiikC3zdHCCblDnWsHKKW6eOAsHEm4P4+9JCc4TmOHZQe+joJq2VOUerJTkJTIxDl+wykxfu+mkWqwXIPIPd60J0G630yvPfSGlEG8TBlgRQPe91BJ12iP1nOiFMq2oDbEVjzAFLmWrDUwHY9CKRbwAzz1M9At0DATY8a+YlXJnX3RDaTNTYiFSa3mLZxpE33BD25FG8vdvNNOwpzpXJF9TEM5CctM0R7y1KeRukIhO6tWE1uQulRm9IXgIZ4WP5U/Cht2SKdUBqMAOIKN3ymQkkgavvQveXtn9YnlPiDnAJLI2n7BRC1m X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: e7a96475-04b6-46ae-2b5f-08db6bf49adf 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:31.9302 (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: dNRwwMsALAQPDLmT+02DGk92I2YOdDIiYUWM0GbjwmaJq9JVJXDQWa4mpn/9zREp666mrvVe3RLeuCQeLASakg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB5784 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li Reviewed-by: Dmitry Baryshkov --- drivers/thermal/qcom/qcom-spmi-adc-tm5.c | 4 +--- drivers/thermal/qcom/qcom-spmi-temp-alarm.c | 4 +--- drivers/thermal/qcom/tsens.c | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/thermal/qcom/qcom-spmi-adc-tm5.c b/drivers/thermal/qcom/qcom-spmi-adc-tm5.c index 5749149ae2e4..5ddc39b2be32 100644 --- a/drivers/thermal/qcom/qcom-spmi-adc-tm5.c +++ b/drivers/thermal/qcom/qcom-spmi-adc-tm5.c @@ -689,9 +689,7 @@ static int adc_tm5_register_tzd(struct adc_tm5_chip *adc_tm) return PTR_ERR(tzd); } adc_tm->channels[i].tzd = tzd; - if (devm_thermal_add_hwmon_sysfs(adc_tm->dev, tzd)) - dev_warn(adc_tm->dev, - "Failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(adc_tm->dev, tzd); } return 0; diff --git a/drivers/thermal/qcom/qcom-spmi-temp-alarm.c b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c index 0f88e98428ac..2a3b3e21260f 100644 --- a/drivers/thermal/qcom/qcom-spmi-temp-alarm.c +++ b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c @@ -459,9 +459,7 @@ static int qpnp_tm_probe(struct platform_device *pdev) return ret; } - if (devm_thermal_add_hwmon_sysfs(&pdev->dev, chip->tz_dev)) - dev_warn(&pdev->dev, - "Failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(&pdev->dev, chip->tz_dev); ret = devm_request_threaded_irq(&pdev->dev, irq, NULL, qpnp_tm_isr, IRQF_ONESHOT, node->name, chip); diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c index d3218127e617..f99b0539468b 100644 --- a/drivers/thermal/qcom/tsens.c +++ b/drivers/thermal/qcom/tsens.c @@ -1189,9 +1189,7 @@ static int tsens_register(struct tsens_priv *priv) if (priv->ops->enable) priv->ops->enable(priv, i); - if (devm_thermal_add_hwmon_sysfs(priv->dev, tzd)) - dev_warn(priv->dev, - "Failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(priv->dev, tzd); } /* VER_0 require to set MIN and MAX THRESH