From patchwork Tue Jun 20 09:07: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: 694677 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B11F9EB64D8 for ; Tue, 20 Jun 2023 09:11:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231929AbjFTJLL (ORCPT ); Tue, 20 Jun 2023 05:11:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231755AbjFTJLJ (ORCPT ); Tue, 20 Jun 2023 05:11:09 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2108.outbound.protection.outlook.com [40.107.215.108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D332810F2; Tue, 20 Jun 2023 02:11:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OUAJ6twUGRc8mxXtCf+0Md4NbT9j0yBklLz8ig4cluOmVqfOMf3vkB4pwmAwyHKhxoZZ4fiZoexHvvAaxSQ6QJvWEY0aWw7viL/8TzE33kzKDBj9G5uSL0BTRXjrh+Ota/z5NnYDY914sPQLRHXXbX+M1h0ev8JoeRHsrXDJ8HICqLUqzhnCAjLgyP8MoUx7d/d3yuvOCa1ofxeeDIPcZRYsZdDGNpIH/snMQnIeJyPU8zrJTafzc/NrzYqgM4OCkU+QRmreYc+IMcvUtcDuLUp52oklXPm2wT6v2B5Sbv3cWcO4z1qA+ppM2p2LdLUvphD8ZPOE2vTMz5rdqsg4+A== 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=vkrV/GZews1ITpCp8W2z5cotGqZ1j004kgvtOEkzznk=; b=adABhuubF00Dnf6+lVTCLUBjdkPzof5gVr8lI2i1dZO3Ct6l1GDSmb/TgFHsNjrN9PQBEGjgnl3MkpQFMgbKC2iw9PvienCo1krOBRTfOIsAXhK6o5XUK2f6Con5o+6xTlg1YLUEuDH7saMMyfoIS3xJqt1T/Kdufnf08O9WFTqEBmvyuVn/bAdI6X8zRrvCkkUJWVoVXoJgkPMVOXNEhnvilo1Z8cK/CU+HGL5d18ZjUcJuF2ZyVIxW3aV/rycp1pC4skhrDwcwvIRK3fZm4ndvoPweZIhLsJZf9k9lPYwr0pDUeJzurKTz6dWaorNthVTj6oXo9NTLW8cmiRYg0A== 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=vkrV/GZews1ITpCp8W2z5cotGqZ1j004kgvtOEkzznk=; b=JzECmzRRaSHT4CKe/YJHtYnaY5qCmrzeomMNQRAVu6aWyBdG3jwtjai9e855UH+9uN5qlU1JA5axRWtuzO1AMxrf1klXi1EhZnTIJOw7NlR4bGpwkDsy1PRWnKeNUqjbv5JmvgHw9m+oGFYhcKfTRt88uquP5RDPr7BbNATgrHngghpv6NObLpuuvgzuWblrWVr7kozVmYt91+Um8C1FAp7sd4ufY/VmKvlFs1zSg6oABEsgL6sDLWJxiITs5xtN3D3+lSbxQFWijUWxe9xVFno1HxibNgmEn9t784eBx4bUPYGHDhLUK8Q9dfb9ovCwvMfmUZadWiiI6exlil34gg== 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:04 +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:04 +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 Subject: [PATCH v4 02/11] thermal/drivers/sun8i: remove redundant msg in sun8i_ths_register() Date: Tue, 20 Jun 2023 17:07:23 +0800 Message-Id: <20230620090732.50025-2-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: 95d6fdfb-dfbb-4582-3490-08db716e461f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sFyrgU99xnLwFEfMo3LJHBa7aTu3ZWug1Ol9/vyKrglw8z5EPy8EdHL4I2/PcjvQmAggwK8dcnc2DvTqcb5bwjxQtwbNoGBUQaroy+F30+8ubEM0RkhXzpamssqCLq7oEGyyc456m0ZIY5Vb7Gr7/9hBnMvceYqsukqTZgavsQpkv8CKtLcUpbD7jB8X4yaJr8o39l2AUkhVCIiSzTiSflbZKFM2GTK+FqBO6x0sGNjMyT4EUgIqSyVkA/kai4jPekbN4KFXtL17B0xAqTkcaT7cVDC3DfZyFD0ZbIIqlltXGo1lV/18LzwUjH7DXdoR+FmForlfGUuP/CY5+LEXWkixdFx+VrsQUz8vxdxlO55Cg9D2hyueH0YzW44fNAs+r+PDMweFgdMMcBRtQ1FgHHy6/puAUqq103SYwdDit0KmNBNMX6rpvdYJR8W6WsrnMK+vqeRxFNrbpssRYAwsuB0+JI4cJz542xQ5lDTqPvi4cNETwz5d560wLiXcEqPW7ubSrNm5VFx6+mpoIEdwCDstGf1wBR7yZzPZz7zlPlzFYBGdfy9qwRs40cR5DoLXqSZHJbT+jcVEIhXAkOvS9vBuOSTZHcRseXC0aU46L9hSBDraYjEpooLn5azNdUAZRckfHjT2x9vkyjp05TZahw== 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)(52116002)(6666004)(6486002)(921005)(5660300002)(8936002)(8676002)(36756003)(4744005)(41300700001)(2906002)(86362001)(7416002)(7406005)(38100700002)(38350700002)(66476007)(66556008)(316002)(66946007)(4326008)(107886003)(26005)(1076003)(6512007)(6506007)(186003)(83380400001)(2616005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tVyTiEcQzKWD362o8iouGD9aeC08xXEOJ1g5upk3nxLZZdm9tinPfioQvlb551s/E1/3C7Z6wxYw/aFaJtspc4siz9N7ZsKRc7ysq+3yyZX9lyCxX6N03fx027AmMtNhcSOAsmsZZfp1RMAqHNzaPSTbitEL6lzq2PlHZcAXbVcgDn8NdopWlfpURJJUf9s9nm4BytrBkxLTwuKwcSgHGX9LJGnlibUWbUQ+XcoT7EkZXm5PowcOvbbhmcglh/4gTuo0aVJH1doo+nX7QdwOXy9O6np/TkELJxnWaG9tdCtQ3ExHoF9b6kB2StHg+ghNuc4hNq+V+xUB8xnZ+H/jN02PGcNhO1DBDo3EmLIPOtVuWcbka9Y6RSpO5nJqdQt+OWCMJMfhhNcsRe/eFQZ2t/8oMomRExKEGt3fqQJjqS7xJVY8owdzQG8JJm48ZHs4bxKHUFhzEUHq+6dQf+Knmuz2A/K9yf9RZYxzH3r/ng/ipa/Bnf4aKhWHFmAth4u99lDvIctAQLhxNpKKsT5dJpCTO7nJR2vF4AbAuKdMiu0ZMNPkxtjHPL4znG9f0n/xZuvolUGVLXBi0HnjNhAcyFPjmRFfWVW0rBXrWOVI7dHUSYIxLS64YOmZhIpBfBcQi1e3pCft1HP16lzOnIKB7gfVXDw3ltaiMFRVV5MHh3kTiL2ULoocF5BDBTKcajbh2n4jTXtBH55Rmqj+FYboY1ZSMVXFAHqbZcYMpZ7bBLkcaEcV5MD6Fkpc2uQrp2h7r5WdB8/bOhvzExU8KbVLp9Qv2rGPFKfUQPYpqSjqnU6aGA0Fh9jjDM4/0OVhWzTqrDSP1C+mbtFMKGnDQBK9bpiQyrb7ryZbQnfzbcqoV1yILDjQfKywFcnxdWtfekAk2b2M4Gezn7lr9OrdyUdyTzlbkO4XwQVV5Xvuk21zXKOuoWgNJ7OIGI4F59MkcEM1ipc7ZgbBW1U1eIZ/P3Lv7RWvb8SP0JhKPAbNqypQF2dsGNJjQLNvkZxIjo6prGLAymT4c6LW31ZGWJIGIZINJl1wVexbxeuMdxEnvd8BQ4kY2sUnyLGHUFHBGojEa821krbaOEax3VlxIEFRpLsKhNJIRqbdJeMHAlv4hadgueNqph/LLQvOI126q+iOjWzLF+ZfAsSGWNsWM1ib1hdCDhtQcTuDZRERKBIEbLOE/KtkVD80FECav9dVVJ3QMcTMN503jCfQpKiFV3EW5DJCuY5YJmW1N2EPl67GFRj/prg/t0T1jHWLjAm6Dj61zrsK++MfF8DfMmOhO+qLpiWtHgjjqHwKbPpDslz5xkf8YMf5qGacz2VM3OPSZUOGksgJIZC/1AHowMZ6J4LhHYl4FYx7lUJGY/EnLmI74CQ+YAQW493EWIzoT9eQrdoOhI0Wnk9oswFHLNwvM5YwkUTKxveD1evT3op0eniJW2iFTVc2KjYkqlSCm4Mus4vcO0zNOhELlHSgoLj08BpMfCrpSsXgmcOSHaSAEJnp8gssFLAq1+07637iXVnwfJk90KoX/REKveEUMAJ1CULibeIK8HUtQFzj0G+cnIXyT/3Y6xI+hhmYo84xKsNEk9frvPL3 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 95d6fdfb-dfbb-4582-3490-08db716e461f 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:04.1849 (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: kZ01vsO6hhSwImm/QjrWZ/32e9jvtadxQjpV2tZqbDduASs9xyuD/blJ7nFE9UJJ0ii37gzxqhDLHbNZQ/7H4g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB4510 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li Acked-by: Jernej Skrabec --- 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 20 09:07:25 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: 694676 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E63EEB64DD for ; Tue, 20 Jun 2023 09:11:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231678AbjFTJLc (ORCPT ); Tue, 20 Jun 2023 05:11:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232148AbjFTJL2 (ORCPT ); Tue, 20 Jun 2023 05:11:28 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2103.outbound.protection.outlook.com [40.107.215.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D3981728; Tue, 20 Jun 2023 02:11:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EVORVkEC5motW/1PinugGXAo3gNV1Z6VcwNhfuaEoui0Gix9UBlflVNWmg6oS/jzB/hFAkT4cZcTEo20qUrdJD2Iw6vno3oNNmH9vGZN8ZMqY1Hr0U4xYIm68AJKHYQ+fA63nI9A7smnKOyMdDcTyKEH6YeeRkGAJfzil7Voc3rehoBRxDBqKrT3jJRISM9NFemzYcKiNNdTWu2g4RkgTrQ43b/mWe4MUqtu7EckwtXLYh0LkX4guhx888WL2n1HBf9Z39D0HOM3cBQRkwBuSHevz11cT/49gdpK+RbqxnfmWSFZX44VTWXMIU/0jDiUqlZiC7EJmkpkYDMfak+Q6w== 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=ZQGkJ7yjU/4UAHuGG1pyEcqHMt0l0BDLGU/LftKJph9Ix1N+uPlYfA/Dz/nFBqV722Sso886cQmUVBNw7OH5I7Zn+ZKheEeMdAaVNdrY+8FcJWqlmwft45HqcAXQRAnwF5FYSl57p9BTkdaKGZQthVAMQVhYRzG5RbZavnF4Pq1kuc2ltt+Z0TD+5WeYnQoNWOc2isU0WImzrOWSKX0zqQMlzBBaNQHatEZgXBTmQTs7Z9Bn81YKK424HiY7VCmUjlNi0//XJq+AU5QYiYQC7NTPj3CTFk/gszqO9QolzuSrM9eVwcWZzY0wFQsrq+An6dUwGcE6hYvG5g+6PUi0Bg== 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=Tx20Fe3P2mfpAgqktUGzoMkysR7fPmm9arX36XAwzKV99qBNsyaXdTgRbN1w+eVdg88NQCsSn5kA78n6VvmiuBzKHRxj1jlOd63O47nX2gDvwQa0xlRQVCINdUPZ+z0jWX9foIXSbMZB/ZJ2yfEDkuQQyjiNvLQjdmwEgHkJsLEfNnGh84ClX374nqOS3bAkt0O2TocnLcQbK+gBO0yiCttG5x9g3ET4I2FRQfo1QfJ3ykiAJj78JS2w+CBeDDSANF9zu1b9NzGLb2ICaPaWlM/v3zgCEHaDvig814eVzgKTQfS7LPin9zgH5Mug5VkP6/aYAI7Y/XsOKbCae+YAIQ== 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:16 +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:16 +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 Subject: [PATCH v4 04/11] thermal/drivers/imx: remove redundant msg in imx8mm_tmu_probe() and imx_sc_thermal_probe() Date: Tue, 20 Jun 2023 17:07:25 +0800 Message-Id: <20230620090732.50025-4-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: 58dc6eb5-8859-464e-d85a-08db716e4d32 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Jbz93tT0YdoB3zuvF5uqeMheKBG6oakxPjFoZJ89hTohX27h3mZ/4g5xC7Ac2HNzNVoi7p7Xz63GFvna+Rbo6YFIsrdXj2FL9BoExwSLskJCArGIL/X6EsPOokxUmnKM6JBcnVYwa6XefBv0eZ8NK/WXP5cIRXKLNKiyB2syok81BINtAXH3qmSg1U+VqZI4bQ3zVYarGV0HTzazy1yjgXc+893VOK1/WC0k8G6hIh/SEhPnDpTkMk4HliEUhMQZJ39rdjMojAocAXf0GykQGrVYXWj3auPLGqBF5G/njqet7RenqJ3HB6e9ZvKXt48Q/2etTXkPrXxw0zmEnPkD2TYQAhKLb3Sx0peztg2cC/5/9gdDNIpFfL4FXtYzckO0HusePReWLluZCI9OslskBEXiQAXwJM51CzR8/QQZ7ljh/TXr5JCYinwqvWJyDz0f0dvubEKouG/OHQD3Mg3LdT+Qv6oqm3ZxVpQspvVzQKumTXRedl+bAXkKSrqnzNu1Ch9o1OJByB78QM685r6zlLHkfrboP2n3YlbGSF8KwCZ5464v5wRJUUGgKqQ+xh8ZGZ6Bmf4kALakQUO6qDOD5OclkdL+ERe+SuHMijjyPaM3tuCtg72lZum2b+HlBbJOW258XXBfaKTTilhGpFBNgg== 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)(52116002)(6666004)(6486002)(921005)(5660300002)(8936002)(8676002)(36756003)(41300700001)(2906002)(86362001)(7416002)(7406005)(38100700002)(38350700002)(66476007)(66556008)(316002)(66946007)(4326008)(107886003)(26005)(1076003)(6512007)(6506007)(186003)(83380400001)(2616005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: VPScpPqanjMah2bNHDgvYCgbjo34jsVpVSCdB8UOATKqk8h1aMCTJSgq1IqQjZD/EtzZ5drfASuqeo3bXuTZ67IJq64TgJAAWi0Mn/gfZcqmx8RUwm1ORYboPSt9mlTo5TsAeUmy6oSpXErDtjF0QhI5pcwgYJyhqpr9gFA7tSo1kHce9s/C7/g4jmKzYxSVdZU000SSxIqChDVX5b2mwZ/7c0+AadKr9tXL4KKsTpVkqlKuzoAfd4DNr/P2PEIVBscGqcYnk80Gv5wRlv8iaEouOTxfIMEG5j+4m9xDnxXGLJlbVM1U9ECY+lsSEGwV+0Pt+D3K4IRFsrc4xD7RwcfOPbYPWRhsqrDMpfg6rCsIePTr8pG0OkyBwzc1vbAp2hEW6c6EGmWLWImbsLnJ8WOm2cc3B+B3f66NAyg43S0nYFpvL2W5Wt8CZERBuDTvgk6qEXdX7KwnCCFSsD1i7gOEXaYlxVXj0cg0bEcY3BcTujETPzSiCnZMCK6GsBCisA7mCZePF5UxI/FpxEi6p7uhW2K21OLB3bUlcLRo0pluPg/mWRga0fadaRs36XWnw5OCpz7DiPzgou16HMcd/q/6vs2k98He/GZRIu70MSAIgPXDdzepMGICQfEHOSK9e6/KJXAIULpAVWfJ5x5i4Xvx2MMpCqat2l+MBRS42VxLpbgs36eKSvXYdIyNc0bC12X/ntCs1v6Ntf7Yv850n75orkoFRce60lJ8vfcoC7is5od81b0TnX9pRYxqiDnZdYqZBofeWs//GV/cspZH1O6IzGNEFK1GnnG/TQJnj8z4oVVlPapAdp8EMrh9h1N/R9BBt0C3MgH8c/1QkIu2rYQ9kmR+qhMZp0pXtZ1BV+SMJgK4zgKaRUO2ixR2tcpDLWBmZGxH9nCnEslzV6YNnoiwn+UjSjQDc5zLpK/88vh/ilmpEKe3ahuQXpcLfEH2atEHBv3TMuon+Xlr0RXKRwH9Fr4+Ko2RjyjM49f5TLtlYpTLLbjiqHDAN10gqbmycNEtldYDLwOjqt8Rw4zNreC/FjG3ZJtHLyOZD4AZwnY/E3fZaXe90BZxUquFu1IRdhx9o6SlsfMFVviaUbjqs0elr8KMnxC6PsOthdAF7BpROdOFFarIYKyOk8guajPeBn34MdIhxjm1WGDamHS/7XiaqTRloVt4+2HKxWvWcLnCpsRrFY7hsFw3JcVnSxMoe/LOirqCBIEgRTocoYhN6E4sbLdVJJByZCK2Z45Pawrr7XdQDYxWsy8TLQoMfg5RpmsV6FG1wVS3jgXl3WKtYVHLmBWRerl5GxOq8n/fwNaDD4s0CkKT8EOT4s9uFBWpVdbeM2eNwpUakrFh/I1+hBB0sRJhJB/N2F22+W1Y2Cz6Npd62kwS74/p3W/yLIfu07g9SQeqXFNUsGdCUbuuAspk3jzYINtoeStnCKqoaOoZGz5fWkra9byE2LDfOkgjxHL9xMavdnP8sqvwVfIcPMklJXpEUIVK545bAZFJHy2VFY6715twehBjorHZA1aQfIJUHda5+sWqGXfRHRNapyX3xwZarpXA1AKlLahJD/oBNBYRCoBuxWDPYtfLCBKk X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 58dc6eb5-8859-464e-d85a-08db716e4d32 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:16.0791 (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: ljn8LnTYKgU/F0UfXC/FJSW6vZGF5Y8SLQWn3Z9BYyP6LyJn8ZSpoI1SRqsPNmh/Amukm6LJeLC2MUGgiCHQgQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB4510 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- drivers/thermal/imx8mm_thermal.c | 3 +-- drivers/thermal/imx_sc_thermal.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/thermal/imx8mm_thermal.c b/drivers/thermal/imx8mm_thermal.c index d8005e9ec992..d4b40869c7d7 100644 --- a/drivers/thermal/imx8mm_thermal.c +++ b/drivers/thermal/imx8mm_thermal.c @@ -343,8 +343,7 @@ static int imx8mm_tmu_probe(struct platform_device *pdev) } tmu->sensors[i].hw_id = i; - if (devm_thermal_add_hwmon_sysfs(&pdev->dev, tmu->sensors[i].tzd)) - dev_warn(&pdev->dev, "failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(&pdev->dev, tmu->sensors[i].tzd); } platform_set_drvdata(pdev, tmu); diff --git a/drivers/thermal/imx_sc_thermal.c b/drivers/thermal/imx_sc_thermal.c index 839bb9958f60..8d6b4ef23746 100644 --- a/drivers/thermal/imx_sc_thermal.c +++ b/drivers/thermal/imx_sc_thermal.c @@ -116,8 +116,7 @@ static int imx_sc_thermal_probe(struct platform_device *pdev) return ret; } - if (devm_thermal_add_hwmon_sysfs(&pdev->dev, sensor->tzd)) - dev_warn(&pdev->dev, "failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(&pdev->dev, sensor->tzd); } return 0; From patchwork Tue Jun 20 09:07:27 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: 694675 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95378EB64DD for ; Tue, 20 Jun 2023 09:11:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231459AbjFTJLy (ORCPT ); Tue, 20 Jun 2023 05:11:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231556AbjFTJLr (ORCPT ); Tue, 20 Jun 2023 05:11:47 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2103.outbound.protection.outlook.com [40.107.215.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A65A41722; Tue, 20 Jun 2023 02:11:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jOpntg28zWfkFRtSwnK71Rf+8IdFLAKlB/puHFErguFru/qiaodKbSjV5M8vUl/P9yUr+c2CzlDi2BIwhSHMFStQ2Awx9zRlp8bY2DOvpSs+gLSE04Po4UBrvDniYbwAh7nZFGuGJIDWXRNNg8CWNiUqMzHcvhFqOf4ywmU0deVjOCcvqxV+W0RZX1CdVgHGxFcEFtKpTOwaL/2AkDM1jcQIi8MmMXRw3y7tfhRCmcG//blKvOykywEd+jRNkU3Xlzo3MngOzCHC1T6ZD2nQTVlkJCtKWFSzB3w/Bsj2wCH9qe8BLMakFV40ik8OTb/ijYhxx4taA5tvDvU6dNjHbA== 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=klCz91XnD9Pf424Ts6NCjzOnnRX0u2xGFxPHt4wThSbEQRUMvLNOqHWLgTPWgCNe9CHLKxDUT2S4qrbnmSqtK4DN0xMKjPpfn3axbaTYKEY7YXBz/7R2mG6I+/EDS93uCQWrn7aQoPjWbJUaEMl9+Pco4oPxDvBoGd7ONvsLIZjxgaQlsbj066g6+U1AFenkUkqa6/tWpid1aneZ0YiPstuXulrvkchskY4d6iu2DvAcpWWEGNQkNlHraiXLpjT1wCqCuWjz0UEljeaYPYDRi4kJiq2MS/sHx1n4D2beECzYPRNj7Ymc9MBI24yzewYoSMebjOx3ClMRqIYQn8RgdA== 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=PbpYAThd8qcRilhu3oXp65IoexQf+yeyPC5JEzYcbNIKIeKqrfLnGfBiJsSok2UYyLlB4ob0J3U+pFTxJ9E5Asmx6lAO69KrahKrdvPwWC4mzkUvsDC9ACRUmoyBebHNqH8OR6lUqEkUHtHsDRx73CnLY1dhGy0jvT9+ATnPVwE1JnGU5dUvPpFyDtxzQb82eGOO5mSXsj60s6E6dphWidLegTgaQzgrMPr/2mBH5SOZ57mVhqBKOyeooUW+1eFoQTy4khGPE14SMNCDXCXYKjoxHASroHLLx2AY0KpGCdASQa5heiRdG30ojrEnYThVoe/G8aW1C1PRovskTOXGQQ== 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:27 +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:27 +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 Subject: [PATCH v4 06/11] thermal/drivers/tegra: remove redundant msg in tegra_tsensor_register_channel() Date: Tue, 20 Jun 2023 17:07:27 +0800 Message-Id: <20230620090732.50025-6-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: e594f022-a4b1-41e3-2295-08db716e53e7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FXRtIbzCOLKT90vok3NBE5/qGSubiJ/KPUL/GC3MKmi/QbVNxMfcjFj0boZ0AtZafZP9bi+EqPVHLNYa+5rvDfsspkMmQWaSu2AlbGJ2Pcm2vinG8ncVY4wC8inAPBS+Qu5laBcJlYpuBje3429m1Pn//e25+ahCefF4uWwiKFhy2dVZJOXDPUkLztwXEnss7hja1Mdbm7Il1REIp1vC+/LjHdesNelsUbMG5G29kGwWjcOPlJmNEMv7cH1QyVm31PqKcYWGez6QG3RDHDLE3k+0wWBGY5gJEy+x5wE2tpw+ESDLf5ut50jSfOh8g7h5r5JOjAfS+0b03+j2hAUF8wI2ZXY8nsxbJRSYhyfIh40XB+OON8vdO3s2wsn4C9RDDdfR9Nu4ZRfXyMTVJDuNlEjaRCWSBL+5XFTmWrcSKI5f7PHdpUEL+46aPKeu1Dg0UcgLWm/4DgZQP39ibPT83cFGdG97ikgNa27MohV82R8cWOL/rBtuYcSG4+Fw5jZdR38spoNaYvszI+uBGr6fkpNwiRpTZ2i1t5/grLH8Nzg1KoX2YlWXiJRCvxuCvZ1grS10IQuILKZH1hLvAv7v6edUwcg5S6eiRaemq/S8Mjh1D4oA2tEddyfnBpRl/f3jmAJDb6BcQ6Z3QU0eRLLm4g== 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)(52116002)(6486002)(921005)(5660300002)(8936002)(8676002)(36756003)(4744005)(41300700001)(2906002)(86362001)(7416002)(7406005)(38100700002)(38350700002)(66476007)(66556008)(316002)(66946007)(4326008)(107886003)(26005)(1076003)(6512007)(6506007)(186003)(83380400001)(2616005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9N6ut4mZm6YgA9huxjmsgTd9F5VVQWrect0OfgQ9nS8H5TvKwUE1hzsS1x09dkvyLFxJZ5pkKeU7s7Nd9k1nA3mS+2DjxCZo0xuI8OnKiqwBR1Czv69pch+6OndoZsv76lZ4qkoWtbVNuNytJNvHXDbx7aoZngp6CnoQ2rs/I92Cj9WcB/fUUDJFxqJoWz5nUWnDz+awOQ77WsutxRNKtXLkZtRsKDmrfcfgcQvrutpNVt4rYKDip3XELqs5K/+3dnaed5xwlKWLHd3VWacxhtQ3XWyJPkwwE0GKfu6dmEIQyz/gpWbGmcIdrcodavwmOIPhiiF/Bfv96/nfleR3xztJTKgbUG9B1lmzT1uG/50tr7hfMGCIODfpwkc/mkJ2zUQ1rtE80aPvIkjGkruGg85fxWowtbYHmnVvG9E82ErsEy3gW4titbUhuvIUWSqFhp63LZUy9TaiFzLylZ4rBfMBM5fUOeneXoAivnwy0wJwqdEKDL7Dr0GU3SJdZ9vLevcSsU/Z3vsLh46UDmRi76Bmzmolgis9ZdwuuSZqBDVtT32IuV+ayejam4j5AffbP1jh5A+4SrXTVxS5Y/3neq28d/UO4ICe35FJ8sy1Ukq6eJ4VPaVjtZFZ2KUIHZVc5gYgVDVZ3AKo/DEkeDrBLf800ec6uUVN3weU258Mxv7zEcZjp2sxbOaDqa+Sfnn/oHC1xVY3mKxwIA1DB6/jQ8sgQPl0hGjQfQDk1H4rZV6SYvZ3c8ogKpipdLnsTAWRYdNS2AWzqX6J7myEJHq3O2QZkVnWrhencpBq4O7pRxkANAYzoawQSaNu7We3uioYHZR06D/RPnclaWOx6hBi4TzDAe2oMLrvY+ZAcKAneCpXJiE4fFibVj6nWl3a7IELMdkAhnNjlsvWjPG58VP6fnGvQ/tBLHyWYk/t6eGZcUDGKxkh1+p8iaD/hY/1Dvld0rcMWprkL6FgOgVMPP+svit7KASUJpmppfplG5LDb+xtPZCafQUNO/p4o6K8bDqGLH01pp+vh8/aB9yMGqF0F2Yz4WGRrtDb3WHjHdKrUKNBs0vvmAqYaz7uZ7rC6HZ08MnOH36xMyLFmtwLhEggvf847zjaEsUcFEvB26JcS2L96w40FJfcuUZVYzZl4lMkkqNCogdb5la9tmS3AcanZEDhM318/yGM6TKGu2sPARy+VuJWgSWi/kuIT6Fn4T9DVxFOXEzhR6F0tDtzsZc81niWMWpSDCbAx1inwJZ8W2w5SUXaMnIGhhIcGDQoZeK3hKJeTFWqgsuvzTEJAne5iWEH4yk/6dcGkS9A9kqhLscEs3iew6nkbKNFlausH5DT/uRk2hh6CUw8cpSmfRIt2OQzo2IZ/cYQrEq1k8jjj1JKj7QjzNKbFzkZ+49/f7BxzC6WwHRB33jVdKE0LYPbbWN2iccOqc27xrae8FC4vOEIjzJOH4+e/OnpZSXeSf1RItFFoA/CdIb51J+g6+TxqM5RjwmnTWNbS5xhYSpocLFPmn0JuKOdQiGGSEg8lY/i8PMYX14vmXj37+LVR2xPPQTx1zuPY4ABnpmYKSYI5XLE9JNNsiD2l85vzWAvb8Hu X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: e594f022-a4b1-41e3-2295-08db716e53e7 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:27.2768 (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: o6HXrDPJE5eUogeMk6xeXLdRgZk33KibVPzO2h7hwC6hBWowbWR8LSQSNdG0mf7U+X2U2I1XIE868/ptgDC0bw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB4510 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- drivers/thermal/tegra/tegra30-tsensor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/thermal/tegra/tegra30-tsensor.c b/drivers/thermal/tegra/tegra30-tsensor.c index cb584a5735ed..c243e9d76d3c 100644 --- a/drivers/thermal/tegra/tegra30-tsensor.c +++ b/drivers/thermal/tegra/tegra30-tsensor.c @@ -523,8 +523,7 @@ static int tegra_tsensor_register_channel(struct tegra_tsensor *ts, return 0; } - if (devm_thermal_add_hwmon_sysfs(ts->dev, tsc->tzd)) - dev_warn(ts->dev, "failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(ts->dev, tsc->tzd); return 0; } From patchwork Tue Jun 20 09:07:29 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: 694674 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D349EB64DD for ; Tue, 20 Jun 2023 09:12:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232120AbjFTJMq (ORCPT ); Tue, 20 Jun 2023 05:12:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232140AbjFTJMf (ORCPT ); Tue, 20 Jun 2023 05:12:35 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2103.outbound.protection.outlook.com [40.107.215.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FF0F1734; Tue, 20 Jun 2023 02:12:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WEhoOE3eRGFuo7XjK4/TJvPvWrJhGZJdowwpCdJ4jTQVyUTlPEqUB/O5RekzrKniTAqEgXxBIVSFPDtpywUBeDE+pxoX9WVDeOK/T9omZZzImsLdvoZ/9PHibT7IZRqUWbQk58xD0TGCyTfElvztwL7Tne+B0YuwslwediQyBFFKsHVH+xm/b3YEgQd4DZYRk9KCFEZEFGG4AdsYd6LoGk8xJRlGSkzSGaFPvkaZXxggMXWBJMeU46anEQ7Bh0qNLlUb/CmveCBVdRDME6IS+NcyQPNep633vzBr5N+5+vIUfMzQbCNTIpYNPqumazMeqE/JP6672MhwC0xsMQTIBQ== 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=w8P2XwfIBCwYW5oDJeTe7o+u3tMLpF9fm2q5Jlq/Juc=; b=DmCBLFLfJb0nSX0sWeRh2pQhmufdy2LneXnbGqGJ1bVA3OiTgCH7uWS6wsC1A+tiZPcmQLtOhrnCj786Qxjp8fo7IdR1eWYRweuB30TUFsDr7toUM4FKBKesZLfGD137oN764+ClLzRoh7wPs7FvbmLQU4bmozRtNvehW00IP7EN6rT0d9fjT/HpxOJJ1i2mCjLwT6n5tLRDgz/Yfrdl6Xl0Enx64PT7GwkzRE6J3GSpEAfXqKybynUB48HoGGTjrDRsUy+WXQwaaWXO+srQHKgWLtbQnaTLq3KTPNgqKJfMUJRnmETYY3M0VRAgCV3fQu5uoR4KJfM72WMuEIFU5A== 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=w8P2XwfIBCwYW5oDJeTe7o+u3tMLpF9fm2q5Jlq/Juc=; b=dspIXavCscir5rKpulLuRvlHr4QrtV7vk4rOMsa1sJx3JKcP/mzNKgH7XpIssvdN2iKyer4IQkW/JN5aDKPIx42q9XjmqZDuG2ugatzdmVm+Xjfe8Sv0vujXsqmrL6XPCbiFHomPjlbm8cz/4dXrew4reSZ9LiLk0BSumZ6JQ57xyLJv8WIb4SLAhlcrm9jcaXV/wxUWa9YzZy7htUbs9Twdz90n9xWOMLOCp3D3igU8Z8UbFUyHbg5XJKR001WCO1Yl9eQ84+w8C5MPaYcJt3+Xe4k0vF7y99jrh1l3ia8k6m6niUGy+ofvzLIGNYcSjBQxxq1nK9O4R7g7CboEZg== 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:39 +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: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, 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 Subject: [PATCH v4 08/11] thermal/drivers/ti-soc: remove redundant msg in ti_thermal_expose_sensor() Date: Tue, 20 Jun 2023 17:07:29 +0800 Message-Id: <20230620090732.50025-8-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: d81ca5a0-13ef-443b-7c04-08db716e5acd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vX0gNGrUe2chJkUGLvPFkimX3UCjdf5CGCDf1nEE16xASYwf1WZPQFm5LbLu8Bton+SlQTnsRZ4qbwZy8BGWi+OpK3c1QN0o+2GvvxL586yE27gB7VNacZ4B4h6lb2Na285LW4RJMtpeKXyrP2o4XvQ8Qw9ablw5haajvnYRfqfqvCWp+ANS/lnS5sS76UV2c4Wdzv3volcZlSFx8Q3UZ+d4+InpSz3feZezoQRawAYQOdRkiRphDiCjR2x7Xh+jLFQQoww/MMA1TbCs0Y8FtNzR/XqJsjEMXiEs1xJD/MTYnFX5/qgvb3HknvXSVZ9vEsQgWWWDy+1WfCQ+/Vkw4BG63nrZzf5Lbct7+BzLijAFr7c4FFyNlQAdrhmAeL92Pg+Vqo+BppBtqSvuGiJhbiJhAWHYQB8Im9kGhikjtuBM8uc0/uDRWRYjyhHlnWkzMpqF6FNysrTd6Dl5la1kpCVcnO7+Rs+qjUf5KeBNyAq4EBBAPAc7YfdNpQsESGaUjg03jvTyppDo9CG+faw5UTo7X+EI7p6q+YjC4TijQuOBVfCp6HnGDtwNSV1UYtBh9ARowp2cWB4LeM2Q8zd+1t18k+tFifkxCiE8h47MU7Kc2IGRZs9SGgm8XpDA9eH7KqmuGBuzl3+FlyLUfLIe8w== 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)(52116002)(6666004)(6486002)(921005)(5660300002)(8936002)(8676002)(36756003)(4744005)(41300700001)(2906002)(86362001)(7416002)(7406005)(38100700002)(38350700002)(66476007)(66556008)(316002)(66946007)(4326008)(107886003)(26005)(1076003)(6512007)(6506007)(186003)(83380400001)(2616005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: f27YyfIiUZNjU9horpizTkkgLWSx1bGrbpOO/K7U3Vt6AtEs/GhaaZNqmw7o8Yh4HEbap0kTUOm2xd2a+v/HRG33fBQ4a+Oez4OUipZJ3Vs0S4UNsQTZOReyb61ZBXUI6ijSNonIrt6tMSt7aIePX5JZZWho6fntmiUvUsShoO+sVN5QS8EjJhb5CE2y4cKYVMI5zguub5y9NsMBgbm7ia+Vf7JxAFJNrqNnI3saeBabfNa9W2vrvdLGhj1v7Z9YA6ynxq9cwpB/w7MhnO0GhZkym4M0twaNwQzTsL+0GEFCzd0sk+2nlJ62Db8KDeZmVRnUBXCQgK12dHG4FM7EC4lfu7gIfayEKYNu8jRPfGXin+dduwxADVpgfXqQJzPcCY36KWPf57Fa8Cuwt8n0RrjWEf01Pu6+zlC5T55BsAPtHJ+DogoN5nmlFa1zt2QfMiJr0Qpc641YJ0b/n2tdNVMfDmE3bCEYwiNRy9zeeiN079hz5NYNJiKNPP+Co+0l19RbWn3P+dnnGe3gQS68gjP8wj+TsJIkGHngvpNqyyXBkaY+bUHpN+AD/HZKilH3/6dS162jZ6c/uCEO2QpL60ag1DLFp1RRndcnMR/eM/UrSvbO6f8HzJj/FpP+9xR/BR/Alfq4HBD7OlX1gZ9FwGTRQSssAbBPEb9OmxONnbt2FQKVpLcEXi4KFfLEhgvLDbZb51BL6bAHJRVaM+j+PyVLNYk7w17m1uOVgQBUhwJoi092/gBMECARTFJxybZYsCwYDxMDzF6WiZ8HS7hkFnqXu+QAWV7EzrlQ5JsKwLDtc26InkTLF6FeTFb6st3Xul9sA3ujQS2FUOyIU3iPKKZnbbWPR7SwMF3rFPQ7z/48+6ed3FpQPph8NULhdEJ/mYhKR+jRjL92R6tw1uv6p17i5OD3ZlE8O4hJd1CkUdUwVbPsml0fQJSmPkPZyzmCls3GbZq0LZDMZNDk6od5WKJV9fVzgTYg8DnxCrUsN9wgpdHK5GX2jJouaJH+ASzZCyamFZaOxY5OPDGPQlw7IXES4zXoEnxICth++Id/nmjPsT1ODWUgXdfvVKgZxipYUijDkbifapxPBwlLUgDT7Rb7Bamvof9KtvfaqBxiIV6dsJv5PSa8D8MlkCJirqJlPXHYz1c6e/gMBpQwTLYXF2hgOJUw4NajcbGfthockpy6MASUkF1C/L9FPaU3Bw5mElbXJisd+F4hkupZePkLLMRcUmjNR/EbHze49s0vj3Ae7T1EYRyDDUiw40nyGVXrCUAMbYZvMX75YHU4px4C2t66TdAesmz2j14BnybrKWb46QZV0oGN+rZ2e1X/8nmPnR4nRY0RdrKetHYIJUm2TDRoPKtFQ0tj1wh8yRuDachZS64ocDT+4hwx2TICm8RprAkvZXqXDYWM1BlV+9R5gQh6xTv2JxVV3XneJNZaAOT/mNdLMWUS3JXibYJliicxlRKyMhRGfmNQwvHsOvfqTy1ns4/AHOFqXYpNil3GIM3iwCsQ9copq0PBeLnnpPIwmO/3bqcfE5UwiH5j5TgZebL0vNkglK42GG3sUx8vWAddJjF0yJvHfymoV0sCFXOo X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: d81ca5a0-13ef-443b-7c04-08db716e5acd 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:38.8804 (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: NQJQZjVCOupjL1DrkENHpeNQiNCtKc8KcIrGQxewQNWxQ1NAvlds7TwFgQ17M9JZGVAi0OmvOGb2aZIq3tV3tQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB4510 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li Acked-by: Keerthy --- 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 20 09:07:31 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: 694673 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89B4EEB64DB for ; Tue, 20 Jun 2023 09:13:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232184AbjFTJNi (ORCPT ); Tue, 20 Jun 2023 05:13:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232098AbjFTJNS (ORCPT ); Tue, 20 Jun 2023 05:13:18 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2103.outbound.protection.outlook.com [40.107.215.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18A6C1FC1; Tue, 20 Jun 2023 02:12:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M8YmLW+74gNG9KxZ7NhyB3wpnok+a6iNTSTONClCH8/rUTM1AeIab6P2fd9/JLJAkwNERLGh5yWn6iJZIztzrYvNI1TSDkJxnmIonsY00dNX9TQ9W7pjmQwQ1Y93tGgvQL16TzrsRkYr8UrgQcfXqwYRt5Xr2sbH3nur63P1TOCY2+rgAjktQ/I7OUnaA70uJNp7zKhO29vPGU2Y/gZZ+XYXH6+Zbsk7ohtLVQ81VbmT0DhboII1F1lkWMF+v0/BTp5Xs6cWscbAWSyKvmQdhRDhvgucCrH+RNQtdxx8nm54ztxnxU8f65Foyp8JdvBrhGV+E8eKhBFy/x9H9nZcbg== 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=Bk4+vwP2LX5ms3J7DsZ/rzhNLWz2N6SaCmE9A+Op7eE=; b=erOKMFgSITBvmQOM067DyG1DTaOeEzOXkG6o7u2rILHTmbE+Ki5PNM7MmMPhi2TanmBsmsuVg0EGxXs4j/OKndgwVBt/hDaSuUtnYStrz4tk0x9wMlxD+zL7Fc4BQls7IoQCrBdDxfdtN3v758TURjx9wNK1lZgv3np1HpMHCNgwhfxcQr5DYO8dk3GTaX7h0zfl5eL318em1RrENoAhmfZ7hFWppe4bKOse+GFQVYK1A+RXWs/1CzhtztaWLqVsEJ2/s+g4OjJqNtFHx9xAzctnwNgwTGULHbFkImZx4YTPe+FKSCCzPrgDmyz7VeKyabix4VP5658iCc0rcSohtg== 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=Bk4+vwP2LX5ms3J7DsZ/rzhNLWz2N6SaCmE9A+Op7eE=; b=LnXw6r3X2mAGg1hSCKVWe4W8NCBE3rmVCs3bi4e44i/LWhfhjMFTx6wqqai3xrC9bBuoUNB0AeC+Wwa/p7KrCfS+OcWPSEGMo+dQf3u42sKe9S9NKJLmwwD51YCOo7Fg1FHADaznHG/yYEB4Y1rI+utWki8b8e33GtDWRVrlYiQwQuCXGFaue3dXxtfyqzq0omLhsxyc+QknkwAx6E57IxrucOQEgR13w5pLrMMTa+47BzXThP+nY1JVfFvfX9KOVUOixGX/lO6zFqZamLMRH7ndnjMb6pBhcPL8oGpBrpCFMyAuoMvCflNeOaP5vVWs02Q6LItPfT197gNUhVk1YA== 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:50 +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:50 +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 Subject: [PATCH v4 10/11] thermal/drivers/mediatek/lvts_thermal: remove redundant msg Date: Tue, 20 Jun 2023 17:07:31 +0800 Message-Id: <20230620090732.50025-10-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: 9f507d90-2c9e-4e88-72f4-08db716e61b1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 98xNMy8CPrBD7lcQBYCnX7cuct7muGp2DVw15PBPZFtgQNOidRUa8VrWXRYgPDiLlK4JgGGMIXhcXGDPa65SJ/1kKzDWFjcoNG8iBcWZyyp17zE/e0L2bufOgIPa6ZTUSTEvBfAMMtOaGiErovuNapwoDnK8dBYJ6i13HRSBlbAP3kx2OLCw3lOCPtK9ydxGBg7WYQE0qYua3SJTjqugxYwmNJtyt0xuXtO9MNbuyZ2AgAN29ntTuYPMJtybUEdFbIeYZRXUs6C0bL0ZLrAEyWTIDU97dZ9AW0L+GqsLkrL/8OntI+7axzXWEpB+/CSw7MC3JOYgv5lREvQIl58e3giw/kCyOwqqjMuAcoFhlnriE2OxpSaXmKQkycMljOPswmlFZetp3PDtpczKwjT+Rveza1A0csP5aFjnD2AbKSC+0VbLCWKPU6i3FRFdvTCXtLZGWs2XLBSR/h4+dxMANWw814NCtB4PMJ8L+qjVh2RAc+0NW/5+NjKEZwv3WR5dmM6fK68ErdJJUwuVPl6dNCp6ydWYlVvNHcqqvmaN2t8uOsJ3ANEcyNqCYbdIP/DJ24um1StzeClshW5ZfwOljV7sQ9hOvUV7DKR/U7i8XIUiaHlSmHzPRCbUdGfPEvDVdt1kTWxKTMkk1/k/kZqYXw== 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)(52116002)(6666004)(6486002)(921005)(5660300002)(8936002)(8676002)(36756003)(4744005)(41300700001)(2906002)(86362001)(7416002)(7406005)(38100700002)(38350700002)(66476007)(66556008)(316002)(66946007)(4326008)(107886003)(26005)(1076003)(6512007)(6506007)(186003)(83380400001)(2616005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Hvc5rrY5YsBkQgLUei1P25en7pCVz0Xvaql/CECRIiX3lRk//0hmG/SEpOr8Zkav9obpoklmR8eH8s4X/rNbPZwXlFwNUEmCvlwHtc4ZEMOZlqMYvw5eQFvYQzL53QEIah7x/8EsSgQ2fuFAC58kn3JkQy/59AN/U5FaiAi/j6sK/FSbsVTxP9XsNWPLa9x7lAYXG+9Z+SsSDxv/qQDxrMSJlGPOWdCpgGh/reKRsGXYVQ/OGDIuWb/C8Tm0fS/q6ToZUM9JC+LEE4IYuJDrerinyjGF206b1DSq/RIWha8LZbOHLZDtpcENnKCjPSONAKqTU6ayMMCuG1bAHZrELwoytg33bN4GbXq4eACCVCMpg2QEb0wMJiryZvk3MNDTL83I/ZkemADTCqZlCBNJvuIUxegcM86zEJni3OJJD3Jlb/LSMJiq9Am5J+P+r26GtA9GVGWNtsWLNri9LpnoOYASoORr5NeEZ0yXVEhi8blodg4L78oExuo0WNZRuKF4K958skWarpBvML8DRshn0wMYihTuKWaccaLUemxA0WIeoJit2ikJJyaJ8EmzQ3D/j65+3DRp/Z/5nmwnHLs2PjBw7Nj3T9SrEcw4qrEY1R7iJcaXOUg5rbmqCfPfg8w3vh5a1xV6QUUJQBYgS/r21kd+vSMQ6y68BDyDEmg8p51QxT7EdEBvLg21mAXt9tEoUxcVzjTkWQDCH1R0kVsjwFfpjmtz0yN+mfdWbSH1KzASG+37WwN++qKkU5YwxxJsW9NkW9kyIzg425OL3xxopBGafUSICMjjzi9s/s5m+1MbWXwqZUfKmSFN7w1ZuHmUyo8oGuXHJSW3C+uWHKmYdMTIU0xLMCrpHi2S4qq1pcXhA9vGHODFZBu9L8ZXboq1QiJf4O4uH9dcqkmwBNSPP84D8M5bkEuUnv/WENEpB9achMQujPuCF7IAMO8sXBN++tTm1m3ucf4cIOUqqC3rkumziwvq1vLuyMuth4kmMaoFEuDGYLjEJzLi0Xoi5EVIBEE75weoeS/qV/HfmndnGKv8K+XnxkpIQSY+GOwQ1+YYHdklbYzoJsO1St85g8ZeJObIAcnLUOHtfaVJLE8PZKSpYtSb03jJRD5nkOobqqWveSFK6X/DR1/ik8SOK/RFJ9dIyQ3gXOoI/QkQvk6zDUFrPz1o3DwM4VbOnwFaFnaQLdoJuyoFwvH5FQ+cjgjWYEkcpeUCUC5ymBKFcPSwvEl6gjKZFLHcya/N2P4kh+XlSlX8ivOOi+MYk07fG9+N9z4MJGqlHG+G15ulTWcKftxTZ5/6t1E06Xxn/123CHRxGq5IxBYq9mkmEZ3VX2XxXseYpkm6+MSt9w+7TMa8GFVdCgt5ZlDe+bqV2y8Q/Qh0lxt6M09V+Z1M88ksxDVmvySoz+w8IOTcIUIr2UiTfQM2G6/v1/p95vJvgUoCVE6YLs78RMEASrY3Uv7J31s/Q3s3OYL3V8e2+wYCxlA/SDlKUueXeI0HtGk4kBPdeR6HGPgFnEsPBMh46zsyLNC3AOEFWBR5jDZHsOgWbIDLK5gZQd2EMtvsGOxzFq4FmnS676FaSwqz1t1Jo0G8AVfB X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9f507d90-2c9e-4e88-72f4-08db716e61b1 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:50.4541 (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: 7t1Iwqjx/XhS9AeBeq3VKcBvnzKfcCu6maFck1arsI93XdkWGbZCTnivxTS0EoXy/oV1lLrtD1EVgdQa/9Q6FQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB4510 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- drivers/thermal/mediatek/lvts_thermal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/thermal/mediatek/lvts_thermal.c b/drivers/thermal/mediatek/lvts_thermal.c index 1e11defe4f35..b693fac2d677 100644 --- a/drivers/thermal/mediatek/lvts_thermal.c +++ b/drivers/thermal/mediatek/lvts_thermal.c @@ -998,8 +998,7 @@ static int lvts_ctrl_start(struct device *dev, struct lvts_ctrl *lvts_ctrl) return PTR_ERR(tz); } - if (devm_thermal_add_hwmon_sysfs(dev, tz)) - dev_warn(dev, "zone %d: Failed to add hwmon sysfs attributes\n", dt_id); + devm_thermal_add_hwmon_sysfs(dev, tz); /* * The thermal zone pointer will be needed in the