From patchwork Tue Jun 20 09:07: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: 110365 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3535101vqr; Tue, 20 Jun 2023 02:26:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5apIu3RAk8TddTNaC1qiRfiADR/o37/1UWYlEAuvezlgE5HUJnNz+yv2YAEdaFmRbhBl53 X-Received: by 2002:a17:90a:6ac6:b0:25e:2348:6572 with SMTP id b6-20020a17090a6ac600b0025e23486572mr12230677pjm.43.1687253207681; Tue, 20 Jun 2023 02:26:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687253207; cv=pass; d=google.com; s=arc-20160816; b=zgiDG9L87UQYSWSCJ0Ta6qkBNli8j73Yu2hWmnToruymR7aBMN+oCeGGJcMo6SBn1f DoI62/j3J3aNr9kUO99D0/mAy0vOQuqQzkk8n55jrjSONpVP+7O4pJ9fuQ+aJgfx09yD rNBPzerbo/iaQ/D2GNofIotfMn9cxhFZn8MemtwolCFLHAMmm0aUHbELLSuruTDgePKb xZTefHuVMqIeYE+XeK2fZ6BsdosSIdcFAczkf1os8YROQhqKCXTOV5v8jVD49QXOAbVX 742y/riWTEh4UAL/82l9fvOVxz7iCVRfj5V+mD4uZnkCo/OTqquaUUOCvG6DdkEQ57ro fTug== 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=W96zb83cfC9lWJvV8gHZVuQH7IQjEeE5wIunQ+wg9Wh2GywDEZG3zhdjcGx+4kOEEK 4zonHa415afo4vLihnwmomU6xIPbca48ugRpu1m+FTR3oiGIEhR92Izb5VobSHF1Exm2 EbZowqZfkMaRzx/dgWzJ68dlPcP480PUJHilYjkA8u0mU1zUJlJnDKdaem/F5s8okSoF 1C230WsRzYaTFc9aUgV3+zojnDk5y/ke770yJ7OwBRhijcWuGrPNjl1ZInidbzZiSTL4 jnszuSxcQMpxJWBXFHqvmCFRSLDZySh6EJkh4CQ00gCmk++yVM2yD+WuMom7tg1EyKeT lGEA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=bUcxBPkm; 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 bx8-20020a17090af48800b00250a6b87c76si1529268pjb.142.2023.06.20.02.26.33; Tue, 20 Jun 2023 02:26:47 -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=bUcxBPkm; 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 S232081AbjFTJLa (ORCPT + 99 others); Tue, 20 Jun 2023 05:11:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231620AbjFTJLQ (ORCPT ); Tue, 20 Jun 2023 05:11:16 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2106.outbound.protection.outlook.com [40.107.215.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E549F10FF; Tue, 20 Jun 2023 02:11:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eJJmkwHH1OAb2Zm74hxAKk+Pc4J4tJTW1oFfyEKrJGy+ns1Ifkqyvi9EAiAhe+nXYeykXJBdLOhjjg2IGT7HshpdnS2Klu6UVWi7iGvS8cHK+EnD8iYwmYRkjHj+YHwCy3uPp5JU6E4aSu0Gau2TOUV5rh+tXlJMscJ5gQTEAh2Y64bwso5ftMcVQnB8zcjg49bRDcNsDy0CdXOQr6Mv8kYB4h9eJJaR8LGddqnVRcKh345A4XvDqJTqzbQjumqdNx5dKrqgMA4xkeorlzfTBdjcBtH8ckQVNF4PEa1z7SRVpExe38fpoiM7oXeilJZBSy7TnLi9tphZxieN2KXgAQ== 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=K4daiKWSdqFyj+I3HwJEC/JGKHfIaFYXboK5A4Tu05Uo11Ha7xRqfXIka6iHMXcle0LQv4TBWlWdrvqyAys+yBnJQd74N2nKc1zK2KxEvuvD1LErJhaU7yTTQ9MVCdauZ4dAFOBXMvbrnvSUrnP1o2kARkOSWA94EfphjMlWgHrf7HK11pJtO7GRSdkkOZEBkLx5MHK7EDvk0BTDfVeiEEKrCDzhpl4K5I4Ttq25WfeJDPMFF0IWPpKXaHFhp8P/8E6Y+qH04XxevbwSwB/3r21boYetCwH8Q+IsPkuWljbAWzhpIn8fEHYZmVz+Ms1qQ1HgYK0CN3C78gM18jd3AQ== 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=bUcxBPkm3uNJ0gWnrgroLLguRO1v3/+uk2824gws0gDUFsznt0za1AwQMBICyl4YJ9A6GnlrXslmm744NwDzgXQxHS7qzurbRZ9BZEgrwOcglm2cM5pWnc/1lZm4kwTlfFzJgF5ToQXP+cWORHRAcp7JqmfOXc4o9dHr5aGJd/kdbZhyFuYvIYKWhfvUConoYDQi5JO1FVi7GRbZUSnBequXuPv+hMSm4xAeCuIED/z1SbdoihOvZtr4rDUE6deFj/dTl7LgpY6JMsdJLlVMjVPqFSHn4rM1x9C46Y+9gXHS6Q8akEMzMsgIE3s4EyozM/5aN/lH5yVhR+yjlSpUTw== 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 TYZPR06MB4510.apcprd06.prod.outlook.com (2603:1096:400:65::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.29; Tue, 20 Jun 2023 09:11:10 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%4]) with mapi id 15.20.6500.036; Tue, 20 Jun 2023 09:11:10 +0000 From: Yangtao Li To: glaroque@baylibre.com, rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, thara.gopinath@gmail.com, anarsoul@gmail.com, tiny.windzz@gmail.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, thierry.reding@gmail.com, jonathanh@nvidia.com, edubezval@gmail.com, j-keerthy@ti.com, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, bchihi@baylibre.com, f.fainelli@gmail.com, niklas.soderlund+renesas@ragnatech.se 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, linux-mediatek@lists.infradead.org, Yangtao Li , Martin Blumenstingl Subject: [PATCH v4 03/11] thermal/drivers/amlogic: remove redundant msg in amlogic_thermal_probe() Date: Tue, 20 Jun 2023 17:07:24 +0800 Message-Id: <20230620090732.50025-3-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230620090732.50025-1-frank.li@vivo.com> References: <20230620090732.50025-1-frank.li@vivo.com> X-ClientProxiedBy: SI1PR02CA0014.apcprd02.prod.outlook.com (2603:1096:4:1f7::9) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYZPR06MB4510:EE_ X-MS-Office365-Filtering-Correlation-Id: 28995512-ffb6-4845-1856-08db716e49bc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0Qh4jydQLOAc4H6qywr2/6dLBoaLwD9eC4Vw93r3Cho+a3N0H6Ux+j0q5C7rs9t16jJ+iITuZp7z7TvfGpmqEB6S0Ohu2koScFkOIE69DMhq9LOF+SZuwCvC4AeXywTTAkls+E8vOeM3wPZo1tNNOwRx6S9NtSLh1fiBP8fkGyNGtZcfkkBbrLv/KiRsJsk98otSdUPzjn5ab9j+uBTF+8N56/Dmd2joaqqVLKFKzjqgSmblBh+pECW6a4bHkfCNAdlwA0HBTRFjyGCcUFHG2Tf3T9BAtJWlrr8YAJtQNva5KKseQAc/FkhZEvfKl7t42jdpBXMJ6k1mjUjwXjkp4XXg94/QwBbYADpACfOCYIKy9y3oKA74MKJxKuw2/y6Vd/ZXTNHtp38jk1/60GzOYdN9+7m0P4QI7WZE+iqYBeqNw20TxNxK+/O27BTFP0FAFuGsCRTqo4/oSi5U6hpIfsjwrFi6d94SruJmwzvOK+bCe0pJTLYBSZN19gWP54Rd/huetUHlIS7nzMjHGA/0s+vMNi+8pQldypnm6MxC4HXrb8m+eJ865MMv6qQotYu4piBzEqBDFLO6IsCdC9lsfrUH5W4nxnNBducN3pW+MU5LTFAvgIWciYM0S+BJxAUKHRIA91ObgcjrTPVI6F/p1g== 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)(136003)(346002)(376002)(366004)(39850400004)(396003)(451199021)(478600001)(54906003)(52116002)(6666004)(6486002)(921005)(5660300002)(8936002)(8676002)(36756003)(4744005)(41300700001)(2906002)(86362001)(7416002)(7406005)(38100700002)(38350700002)(66476007)(66556008)(316002)(66946007)(4326008)(26005)(1076003)(6512007)(6506007)(186003)(83380400001)(2616005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: F+h9MMbX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fdAMC5y5uKjsB/hzmfxVDlSDqqDCwnRfJYmYGthJmo0/migrjDYEQtiVtF7/SjmhRoMOlvTP7qyEF0YqUW/GN9wZC0ld21jCviREuo7nWTc1Ycbxf77p0yYEi+prv9gQ8EmxCY+MmGQrAJ+cAyIvjRrgimbB7l6uW8QmTjE+cLPZzRkex3o1HQV+Bv9GBHHHVUx5Pws9y1adC7dh6QFic3VuJWzgiNwXzdBycYpS/E6oOl8kCHAfnIEhESrXCzoEte0oWdId0iz5iv/veebDUq/niNKbIvZazxUQ+4v3iZL5ycrpk7fZZO02x1pyvvfYoIopRogf4ijrHXWHdbRBFJt3eKomVfkhV6YVLN1ivui/xQKbA0aSavvNodnlAQQTDCpxR0riIBY7/dyLitUR2Cz/sm8vY+pUHukNeA0jdSq1G3q+VxH9R5KtyKMoWfTXEacf+b1FTaZeJLMSRchyqDMLEp2Yda13Ce1wPBbkh5r98S8kh0PYu9QQcJCmtIon6zDP5E8CFrOw46K/jo5 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 28995512-ffb6-4845-1856-08db716e49bc X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 09:11:10.2206 (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: U9W9xY7BMeCUxeGAIDDZqWV7gEtSSut3yI9QuquczF1Lk88++4VFqKp+Vp6gQmRTYwiw8FyWgBS2+zKIZOPVIA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB4510 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?1769213219395350672?= X-GMAIL-MSGID: =?utf-8?q?1769213219395350672?= 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)