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: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 107245 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp434378vqr; Tue, 13 Jun 2023 03:19:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ447BW/W8RXJ/YKLMy3R6cP7w/J+HMlNszJkQkTksb9kKxrN7hbV71R0dI0JGEQNeNwf2he X-Received: by 2002:a05:6a21:170e:b0:10b:fb01:a72a with SMTP id nv14-20020a056a21170e00b0010bfb01a72amr9637462pzb.60.1686651557867; Tue, 13 Jun 2023 03:19:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686651557; cv=pass; d=google.com; s=arc-20160816; b=gy3QNw98PS7y81vda+mvHaO0mEl6gG9WfjGeQqQpOpo37gKsDHgaYgXEft7UO5DkJ2 9XgR43UL1Elzhy/PeN8hpXlyUC4Qjk+w2TNN1DNDm854U8f+WzRM8ig6Q/QN2rKIaFs/ UwVlfgeS/OFx6ntOxnM6jqyFVeSas0FS7CcV3Oz/2FSIeIvruUtqragme2lZilTbTFej dOYedGDQlDm+GxfW3mBQkTJEJ06ZAkFUwY4jSY0C6w/rhzal3I7wNunjBH1K/mxeEVTB zGEUQW3pSP+xa/Z2FoMpjGsWiCP4h+c2RX0w9p8H6NAVL2SMZyuDi77A8J+iy90QVgx3 hDqw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=wgUHWTc8w9uXoZ9FmOs4xU+yjuY46oZRm/AqUHLmhp0=; b=d5ZHaUkDP3rGtKv/PN1Gb3ZvrOZ/urP1bLjOpJYXv+Pasiw8Th9+82Txl+pcNP9Hon Bar9iULdgMhJuxeD3OpH8A2L2zR1byALTpSPgtrzLmC52ha9jTMAgper3/11Q5hidS52 t0XA/unGyNcNSYMYNmNhi9D7/f5v1afqP462wHcrlhWll4GgClb8FJ1F7TS4Lyre6YwS VlEVlCRv3jgaN/47NEpx+TVSJIhz63rRp6691U1DxjN9BWbGArwA+uJz+OWUqzMVjfRl +hLHQXSdcWwDW8vtQuVvOKAPZL7q80mAMiqvuYnUaCb2WyWeUKXjlxTYqQ/PVbbkePBO C9yg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=dj3M1cu7; 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 kz4-20020a170902f9c400b001b3c7e5ed76si3337013plb.519.2023.06.13.03.19.04; Tue, 13 Jun 2023 03:19:17 -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=dj3M1cu7; 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 S241388AbjFMJ5Q (ORCPT + 99 others); Tue, 13 Jun 2023 05:57:16 -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 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?1768582343953206172?= X-GMAIL-MSGID: =?utf-8?q?1768582343953206172?= 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: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 107237 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp427134vqr; Tue, 13 Jun 2023 03:05:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4VMZj89UouuFtWiRZGMrUEPhCjFEXPdV0TzyIAp0VwISuT/TJ0wTcz7kK5dpTMfI1OCmy5 X-Received: by 2002:a05:6a00:1408:b0:65b:945:f221 with SMTP id l8-20020a056a00140800b0065b0945f221mr14026122pfu.34.1686650703712; Tue, 13 Jun 2023 03:05:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686650703; cv=pass; d=google.com; s=arc-20160816; b=rNFcttMPY6ttbUIYTWK1Ee2ksS/yXm3CS2ag2OjOHCxBecBtPnmanR9WivfCDCnb6d iFJeU7EzxpLhEDOOZLLjBv/DbL3hCyz/jIAoanFOMvqPUiVh5xYxmMOyzMCqkOasAqM/ pMYkwIOTx7e9s7SUa340FZpFdG29XAUDzI98h9viqASmInBpIy/wvc5WRqA6FyhW2Txr HXue3pvsrF225p8nwRRaA7XiNN4dKSdlct0wqpUcaAwzicjVODg16qJoymC1Vaqqh08t xUJPFFsoRHA7PAhVd9RdYQYCKimSrtFfUkyCoTItnryC8F/IWj9Yca2JAhX7Vqvg4Ijy gFqg== 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=24Ha1tRsob+jqsqACWErpPA/fxmNzTh+5HmmKy1c0Js=; b=OL79zJFLbNqubNMZgESEMapF9zE8+JShO0DIGqdj1Zl3LcAhgfVOBqSIE7JQj3Wwvo 19e6kJRpKerL2OFCKxAuO2dLScEpTeITK8XDm2SVuTdkLD/Demdq6+ioh/o+KBIpyzfs myVxNBKt7nMBtrd0WYpW2n+vNB2vb3kMuugDjib9xaWte9Ty6stoynfasdMuo+CVPdgw SizCZnljoLYdABOTWCxtMbVpWeEpY11cWWVADHJ6i7UlB2gjYR6zCksrK76TUlxQ53gd z2s40YTAJ9C1rn4Y0w3b1HWik8r3Mv7ATZ+jsJemUWL0T2ddXZUsIMYWqNrppJw1qQdi 031A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=q7aFEA53; 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 x26-20020aa7941a000000b0064f98fbcac8si8495422pfo.293.2023.06.13.03.04.51; Tue, 13 Jun 2023 03:05:03 -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=q7aFEA53; 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 S240022AbjFMJ53 (ORCPT + 99 others); Tue, 13 Jun 2023 05:57:29 -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 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?1768581448172196166?= X-GMAIL-MSGID: =?utf-8?q?1768581448172196166?= 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: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 107244 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp433918vqr; Tue, 13 Jun 2023 03:18:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6zuSjqDDmk3dD2FbsEtVmcqcfcoDRtaowrCH7ImZDjcL+D3WIiPZJhZw8sLTsbCjV4aums X-Received: by 2002:a17:902:e5c6:b0:1b2:3d0f:be33 with SMTP id u6-20020a170902e5c600b001b23d0fbe33mr9340825plf.27.1686651494953; Tue, 13 Jun 2023 03:18:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686651494; cv=pass; d=google.com; s=arc-20160816; b=02J5XP93ZudA/a8qftx/e965y/XuJsz3nxi8XHNhoZqmb9WF+pXnnj+HCzo+oBpNzu x46CagY8WN0UaaK+kiiFJCdIgJXYVT2WK4utsMTiwqwW/gBtP7yhe9CyJSF7mgpJNrA0 oxFAaz1BTjvcUfS6ZWJxB8RDLfRQBf9mRri1Ez7wWa3dW02YnxnvnI6wHDq9M6yI6qNW v7BbbM/I9AVlzagvKxugDCpiZEF9z7Bsp3ZcebhaagPdGOSxiYTOX1ksd7+S7Acuseu0 3d85J8wgQwi6J+e1JBuw6rSKVnMK7jMuhkON8HBGV/Rv/5g22EiG3p9ToiE4Q5JXLuPV v04w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+3OBtGY/5chd6gxnhXKVzWiME3BSs4Qa259qqbn6U0M=; b=ZOHMip/gIJjtqC18CrLiqRftLbadpPir9Xnq0gLgG3JO+T/F9Thk/Onkes2bPTI76s 8/nHjwrdfe+G8vjUc/zS/0Bkrj9L9atKJusZ21QHtJOiUBvDDw2X4hOGX1oVD8kZqzDG gkXAgNTX812gJ40gXNqRrIdpB30gIdIguCEexp0rRyH7X6/eQfEQi4aq/gB+BjFa/rOK rpDdjCXaBKOi9P1FQHvi3s8PnoIfd7eG1oWlFjrnNO/qrxYIQkIkGFFuoSDeZ7RjgUcM Qu6IuN2jQTVsxSZj22YTcNveLCLcoSzQbKMzElGpNQ+RWxfi5R/GjvGYLarZ9GlVeR+h TCCg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=TwUcDeBU; 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 k3-20020a170902c40300b001a99ace3e76si4891594plk.554.2023.06.13.03.18.02; Tue, 13 Jun 2023 03:18:14 -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=TwUcDeBU; 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 S241782AbjFMJ5v (ORCPT + 99 others); Tue, 13 Jun 2023 05:57:51 -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 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?1768582278376326635?= X-GMAIL-MSGID: =?utf-8?q?1768582278376326635?= 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: =?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+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 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; 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: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 107239 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp429734vqr; Tue, 13 Jun 2023 03:10:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4z/45ZE4SAbl3KjTloeQp+5LmLCA30zRFfxM9RtX9WlFSPuN3vGv/B+93o3Wa3+4fAVYtf X-Received: by 2002:a05:6830:13c2:b0:6a5:f839:17f4 with SMTP id e2-20020a05683013c200b006a5f83917f4mr8769052otq.0.1686651002207; Tue, 13 Jun 2023 03:10:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686651002; cv=pass; d=google.com; s=arc-20160816; b=z3bDFiYeAK0hxS0ZOTXzpR80ceHVqZouVgn8G3YHFZ9lXxwnlc8ormj1AaU6BGL6yY aqiVlmMWIETr+PIwLKeIF5p8NuWWAhnD1i7Qmz0jnmCXmd3Mi7e0FpNAq2wqeNKKPIaW Clbfhw2RbC4bh8sVlDPDlz2pXQ9CnN3rop4YYgfLeXpAao4jsPVBMtlMxjrV4hCwmknP M/gOLn1bQqE9X1y7fSq4cUpeC8A1vcDO075KDXFmKahHRJpF+9UM80NO3XMZ4o33+iIb Ns/EHPFt5HFHFxNzuIsbBmpiMuM8k3H9A9n+vQMSbIuRag7OrDKn8PXFMr6QpHDeeWa4 P8Yw== 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=tgjRIFM7XXXA1ZiuM4luxgQMbyvfhlw0vWc2ywkdzrY=; b=wYB6VJz3nbR8oYnRl2taM2ns3lkR6UREukc6kLaco4xEg/oFikRh6f/x+65a0g2r7Y UGta0RrWBBlA2/N6kMX4mp4hPKk1qm/Is0HS0mue+vNmGszwx4KdTEoDlg68iCTfts3y gnXOKtNbUmBul64XSF7e/1N96wJkB9gBgGlVaP9rygx8/rVC01fjxUxNypxmN//5WZEG kIRJ1yA0qA3nbZPkiK0sROGJDK34jkxYs6RwTsq7MAoVTDTNqqAbpCskPPXpiCY0n/FT rg2cCWMwsvqLML6xaGoZUN1T+luie7wl1NDauJHhiV+7i5KVBSoJM9KIcg3BzRvHQ78u zU3w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=enjQ6KTh; 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 i191-20020a639dc8000000b00543e36736d3si8738219pgd.628.2023.06.13.03.09.48; Tue, 13 Jun 2023 03:10:02 -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=enjQ6KTh; 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 S232759AbjFMJ7V (ORCPT + 99 others); Tue, 13 Jun 2023 05:59:21 -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 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?1768581761145484122?= X-GMAIL-MSGID: =?utf-8?q?1768581761145484122?= 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: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 107241 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp432403vqr; Tue, 13 Jun 2023 03:15:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6YUZPcEZ2PhnvB/50adr7BQIPvZu2ZjVwOm4DmwA0FsuraD1G/VWtM1hfRvHNY1kC+v9fe X-Received: by 2002:a17:902:ea44:b0:1b0:25ff:a8af with SMTP id r4-20020a170902ea4400b001b025ffa8afmr7721246plg.60.1686651322674; Tue, 13 Jun 2023 03:15:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686651322; cv=pass; d=google.com; s=arc-20160816; b=XVeycKTJ4t2r5eJFHtRD1u9r6m6gtIBLSZgxGtXeZCYCntz0m4P+sk3m+eEBI5tDd4 HaaP/BKM7QkrBzUjvRBWZBiVCjCCmGGTLREyzKh16RA8uYVr+sUmT9qNbn0LoBCRaMG+ Iymi/G+kOB8reeVqqXP/3Q0F/ka3sz1NlZctDec8EWD9OJFoI539r4bxauzn7pBJmf6R vRcloBLzW6lcfhG3Y0T5Anp2HjTqEP4kWxLTRZ/DYQEtBpLd5o3fZLiynqUAaucHmaDi y/CGgin9T5HFfuS1bNrCCzZJdC6AsNdnAU60rZze/CUvrR/VrrcdaHk+zn+dFG2XCgqM lfQw== 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=++scUHKfsZEh9T42bK/jWLT1eewDohfz3H5KcioCgI0=; b=KvwprbnWBRBN2RWK3fvVImobe7qqtow8fSdbVXnJ1YkIDKzVLG1UGTzF6UhUen+z84 /DMLcGxfQLv/aMfAfvqzXGFP8TVjvgPjP8QkoAmUtKiAonn3f7mZ6BXvCw5TgxywfeC8 utwWhpUC8WdNspyfUOEewQE2hgRk/NNQ5/x9FzFiJyUFK30l2s0oAoGzUBSq3EqZGaat Q7mqtnhOkC4FYF4iIsm0FBoFcs5mR7iWncHD940EZb+9uoODoczeQzUXUJ1MCt/Hj1BY Sfjplk0PAF5357jfAXkZ16iCX8nwrfcbpR3mOs/qtcHpmu04se91lXBmrTKZP8IHW/lq /ZKA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=cj2mSmij; 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 x16-20020a170902ec9000b001ae3cb42bfdsi5260631plg.634.2023.06.13.03.15.09; Tue, 13 Jun 2023 03:15:22 -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=cj2mSmij; 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 S241859AbjFMJ54 (ORCPT + 99 others); Tue, 13 Jun 2023 05:57:56 -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 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?1768582097124275638?= X-GMAIL-MSGID: =?utf-8?q?1768582097124275638?= 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: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 107242 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp432820vqr; Tue, 13 Jun 2023 03:16:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4lqm0/bfr4XBx6lFyuXymf4q1Fq8o6gXfjbVYFLIgymKQjnIxx54/jq8bI9bEhjkK7X8hp X-Received: by 2002:a17:90b:94:b0:25b:f4a5:7510 with SMTP id bb20-20020a17090b009400b0025bf4a57510mr2936209pjb.12.1686651371066; Tue, 13 Jun 2023 03:16:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686651371; cv=pass; d=google.com; s=arc-20160816; b=b0nA/WL6Ok7DKHNEEOdgiGTCFEHTTgesDoBkyHFwSbOlZkD1tRMe246XlmiayTg9a8 b1KTBwfIvjuiCOXyuodatM8ttB592ttmB6bSTv2bh+YJw8HrebD6bn/GfZRetx37xguO 80pVFlAuOr/BKyyK5KrcB+S0vbTsG/UsmVYccu5ZCdJR36R68RejfJGXyIZyWFFcbee8 oc/yHCVssCGALQU9FATK1VaUS+67ulgshdKEBttzEUh5qisgTFF9oB8UZ08T6zpGbjQU Hr1T0X2FY2mw6XipTPM8hNzHsPcxta9Lv3/PWSY6humtmYdAwn+/5DtD1f1B4B9d9bAh bMMQ== 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=BFRIpDy9mxKf73VaQXtUPoyL7qnzSdTF1HT8l2XaQcE=; b=tCg1YJD2DZLkiy4lqxV2K5RwarEF5VD9UMOAjqfu/PyWJS5JbGExEEpYAOakOAO3JC oxduYPzwL0nste6XV+KxM/tQg8odvuIC+Y3FNsyfqgUCWgZA7aiWmTpODnPhcnA8GHSD mDkf6XmKjH4dZ6EBYKh2wSbX8U43O8PhcC6b/pGD0i+0q36NyNOdx+Ng1UWdcD+/SOTq e798pn9T+pDavUtfk+X7ix4ZKPkVz9bW4FfWWnt9LrdfWeLS5058Bm48N4AIwwKePQOs x+Vw4P6fs8t6/3dGNLXbAgS7Xg6Ro3K6Kw6qj2J6gGfb0cKwjUvPexfKNkNASqFJGdkv Feaw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=kP469xEB; 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 d24-20020a17090ac25800b00250ab2f31besi8630823pjx.71.2023.06.13.03.15.33; Tue, 13 Jun 2023 03:16:11 -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=kP469xEB; 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 S241954AbjFMJ6k (ORCPT + 99 others); Tue, 13 Jun 2023 05:58:40 -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 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?1768582148184285238?= X-GMAIL-MSGID: =?utf-8?q?1768582148184285238?= 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: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 107240 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp429855vqr; Tue, 13 Jun 2023 03:10:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6XSKdPlj2+ifgYcZPkgPe8txEJFKM6v0EXrZ6hhZ7rleWL8jz6KfmI0fL4nmrU2ME8VReo X-Received: by 2002:a17:902:d501:b0:1b2:2305:17a0 with SMTP id b1-20020a170902d50100b001b2230517a0mr8963617plg.32.1686651018287; Tue, 13 Jun 2023 03:10:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686651018; cv=pass; d=google.com; s=arc-20160816; b=VLcFSmbj6MXbqWqvlK+qlWgqHRHBnh6oj/DnvE37PpYdkyMIq0yTq0ITlJM6DBbl2s NQNee4ok0KPoqqOfe+xG8uKI/xDNmirfURomxO0ID7VI23vDuuZ9iNV/bwT/Tfry0RUw 309Kg2p8xpvL453pXzVv7usQ11ohIYBVEayS4Qp5hnA4thnFCu/wZzlwdeMX17rAMumG t/bQRy84zQXfKWZZh1dYn8PNM+iMPL+CdyvF6LYWO0ls24bQyQfDj9Odp+vj+jD0xino lBF1c1KaWDHVc8Uk8/0eam3Goa7BWkrzNsCK5fcvzDKVrQ4ykXwB9XgycbpymUEruaVF Z+1w== 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=/rD8kg+92/T4iqfi8bXxqd9k54ysUymkpnPOGQgUuiY=; b=I23Wd3T/WCdbqCi2/FE4uWsdWScVeSeOfK32gMn6P4V820P94BI42DY2Ny93jYIvuJ x+qxjOQp+fAVKg3izBiUYh+1UnU/qaIgawKCYG4wPAXcf6Ts9cjJvu6VHxrilaklTdCQ Ru+838BkinbngOQdl4xsNVMI5WWMHOZylCxj8T3gXwYxe+PP3vMPVpy9FFnUspmIEwhk ugEMWV70ZkBQ6yD24CEY0QgaFUHet1BJgnpP2u7YzjjQfCOO2p+3BqxE9i1AKD/GJrCD gz1LFIxgr4C6Tbe6mQFwa8HCmr6ipmE5jkK9IZUhZ/QAton4ybM0p7Kubqrg1PnSoIs3 pv6w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=nUk60FHS; 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 j4-20020a170903028400b001a97bf417cdsi8779166plr.571.2023.06.13.03.10.03; Tue, 13 Jun 2023 03:10:18 -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=nUk60FHS; 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 S241981AbjFMJ7Z (ORCPT + 99 others); Tue, 13 Jun 2023 05:59:25 -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 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?1768581778105871242?= X-GMAIL-MSGID: =?utf-8?q?1768581778105871242?= 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: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 107238 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp428696vqr; Tue, 13 Jun 2023 03:08:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7QxSsdbXWzyvp04t9TR/45UgcbMmGpt1tHuwe0rekt73rWHLzRA+7mpyKi551TfqXxrL/v X-Received: by 2002:a05:6808:d8:b0:39c:7a71:961 with SMTP id t24-20020a05680800d800b0039c7a710961mr6295099oic.30.1686650882598; Tue, 13 Jun 2023 03:08:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686650882; cv=pass; d=google.com; s=arc-20160816; b=AIQ905zydt21FHltb+xQIsKIS9gduPodhOqp/ydIfwyZ47LbKe/SUf2W0Vu6pR+ZE7 RWL8qTE61v2K9/KqHT5BxoTXYVwN8aiUDg1VRdS5J2uWgr5V7FBn7tNZww7m7KOaOt6m 72dBKtUuZ1HTmgMRCbNx/EbJ5BpR+4/8qvti+qwHJAu5/fgUDGr1oAONy4yJBZCHNczG qtX5ZGVOesVRIHBEF/+nPm33TV0aT1u8IWvH3bN3P/86i0Iw+QCkN6FzzMIcLTwx/qv2 qeXBfGubsxGnTBC/CMAB4pzGIHyti0v4g2hwAylPwZn2q8djfnsSYAst5xjC9Y8gNWIP apsg== 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=Tl2KpQYH7ric5OuONMrc2MSFADsGf5tu1y8+Hn5mUS0=; b=FbCLoVu28a7Q1gGOgPdznHePNbB1qyoq461q8/7fCD3m+BmTZaDTgIxTNsR0oLUrof kUm4G85J3fbjB+cJOfktQ4QGRP/C7i8d6TKF5zeE7DxuK1dnYolQ+cLX267ZIf6LmrqI vpeUpQYa1Oygokwi+MNEpNmJeFFDIIoMOF/wGhx66sEXHLOjMtCSf3if9ntM/g9Zfpb+ C17fXwWWLd4Ox0fXlGFrBI8Dc9LZV+j3+WeplbpuLQFcDwJ8MplYVV27PFf0T1PN+DaD awDLnli5f3MMz1Tw+4pwRdKUa5wFnkfTdEqq4fcWdRQ63X/6lYFN9rOZRpTer5lURajd 6tLw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=kUqZnjTv; 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 bv185-20020a632ec2000000b0054f904a0a0dsi2865092pgb.624.2023.06.13.03.07.49; Tue, 13 Jun 2023 03:08:02 -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=kUqZnjTv; 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 S241751AbjFMJ7P (ORCPT + 99 others); Tue, 13 Jun 2023 05:59:15 -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 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?1768581636045702451?= X-GMAIL-MSGID: =?utf-8?q?1768581636045702451?= 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