From patchwork Sat Mar 18 14:44:04 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: 71615 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp320880wrt; Sat, 18 Mar 2023 07:46:33 -0700 (PDT) X-Google-Smtp-Source: AK7set9Q/+0tnJE/02f0/NznnL7JTI+vrnL7jH/wU7PsP1bmkxju1QNLNo1vpqs6Ijl3O0CWnp8y X-Received: by 2002:a62:6345:0:b0:627:ec37:1e69 with SMTP id x66-20020a626345000000b00627ec371e69mr460069pfb.8.1679150793526; Sat, 18 Mar 2023 07:46:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679150793; cv=pass; d=google.com; s=arc-20160816; b=pMhygjmfWB+5g3lAAvgs31Jz134A1u5/hhkiPnO4x9eGXcROT/KKZttAvDntFyFf4M JryzL6Y6yCigRsbyWOIW8SyBYeFzNjMk0UWEGvrStW8QtxpwxJjoTHitxOfPxguVPR2b pPyRpVGE9wCeRPiMaaIddCLLLQY43XHtImJPI5P3JlhiSy3RwQiAoUXpZqaAGLqkoYig 8ZGQPSp3nZhWgdZw0PB3wNG8fIJXENOx5zcWk8JULk6m64BtlMHtuWyxzRBvPrIn6AFK xwzrE9/XSMS76lxvu+L8bRrZK9XRT9feS/S0qpE8NnGYiUVE3mIJDY5rwndnVIlGr9CJ Xvmw== 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=g+NlqBmxA2Og63Ol9FtrEG4L5yzQxZAUCyz9v4IE/T8=; b=Hx0Qsh2FvYnYaL7c/QHPGuaMwfjA7grnTI/gGCG0o4MSqgBlMsyfh3DPmPB/orNcEE u8Pm3Si9GHxW0BubmtM4uY6hH9aFK16q+VS5xr+PlZezwEBAODs+Di0RJoKqjagLN3fU aoXKBU9CKzztn9+vM3icc1mJUUvIclXcKjPvyVz1onzY+S++oKvZgUMEQ1jk7JY1nOlZ VeYBvzt32miDIn9z3+1cO8BmY1BecROwVuM/LoE0BiVZvYuZQHm41IR8M9XZncEATRei k4Mk8Ys07bfbFDWEB97ATEydDG1eOiOvncwj5V84odg+Zdpv8p57IvYV99r/c2P6DgRm sdwA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=h6fzTLp2; 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 p19-20020a056a000b5300b0058b9025bd61si5653152pfo.53.2023.03.18.07.46.17; Sat, 18 Mar 2023 07:46:33 -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=h6fzTLp2; 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 S229541AbjCROor (ORCPT + 99 others); Sat, 18 Mar 2023 10:44:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbjCROoo (ORCPT ); Sat, 18 Mar 2023 10:44:44 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2135.outbound.protection.outlook.com [40.107.117.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 443685266; Sat, 18 Mar 2023 07:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mzZ5X5HCXsWVOPhAuFzSN1UwD8jJZ8RLIfnAa1ggxH5+k54MksDWjELvwVEPkPEfNJSyu/j51Sm8LXZVbXElsjODI62dZ39rz4rKzASwuXJs5p08XZBy8dqNsK4fZUfYjqJ3X/7DVYwmAXgGjn7YH2kglU5nHzSHiuUO3mfL0iotGUH7tVoSdxwcdlzdaVR/gQHtNQz2G1puCk0GaEOcs3/DkYzTGx7MkIfGyDcAvldNyyUiYgYSLfenPqd6Oi3Os4bukO5GjABykVN09k5M8DS8amT+0XAn0lIBLiptlSTwBSfQc8IQAT7VCZGMbASs7vEBjcv3uTLduL2QVkTFsA== 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=g+NlqBmxA2Og63Ol9FtrEG4L5yzQxZAUCyz9v4IE/T8=; b=HH7JLXwPyvHgyvjysnVfjh7mx7K6oxOc/Y+Cb+mHLxAic6mJpz2kLZqyNoaGwzSKI3f4QKv/h29zDTIAFRBzRjK+uScjQIbV3Cs3tbZW5Gb+ZXC4qZeXVAb/3KiT+IMhCnk1ILWYXgFPxKJafssuICCPJuhpGMLZmLf25A8J7YEOxB1C+MJhE9XZYR2+zNiX2QZgkR4z9Fs7uZ8nS4A4H3clVxFMFu1B4Ehi+HPNQ3Qk4bYCnSmyug8CybM8Kx6lG0Am5I6UJ/Nn/hGTl12vsCScw5wfWycq887bBrxtH8QJVidTowba/5CAf8gBEYF1bZRcnJAHCx1aoT+NCUQdZA== 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=g+NlqBmxA2Og63Ol9FtrEG4L5yzQxZAUCyz9v4IE/T8=; b=h6fzTLp2udDZTlPvUPq2p2Po6M4G0VCWzfha8c04oefpEI48Ga/N1MIWeQviF5UAdL154WtSYSCO4jWfGgDA5yl/eZISE23NjowepoU7d1xgAKohLB08uaGQRyG6ShlKquPXNBEBLFmgRCcn1OWImws8p9MRa9Lpk2uqsRQ+F6+iNKcGcjZ1lEjO8dLDhjfno2gYndUR3Fd4DSJg9ldTKtDZwgYccJwErJhLs3oGTCnTnsyTCidegDH8fho4Dd0yS0HKZqy8jG//yojIFRsgKwK3HiqXG4SGdIE5Ix0oW/CQfOX0pmHJxCix2g1wAhNNAQSYZZwF/X/+zEUI4HEBeA== 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 TY0PR06MB5283.apcprd06.prod.outlook.com (2603:1096:400:210::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.36; Sat, 18 Mar 2023 14:44:35 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869%9]) with mapi id 15.20.6178.036; Sat, 18 Mar 2023 14:44:35 +0000 From: Yangtao Li To: "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui Cc: Yangtao Li , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/9] thermal/hwmon: Add error information printing for devm_thermal_add_hwmon_sysfs() Date: Sat, 18 Mar 2023 22:44:04 +0800 Message-Id: <20230318144412.75046-1-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 X-ClientProxiedBy: SI2PR02CA0032.apcprd02.prod.outlook.com (2603:1096:4:195::12) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TY0PR06MB5283:EE_ X-MS-Office365-Filtering-Correlation-Id: e8c128b2-e4f6-4ff1-a026-08db27bf4af5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: t3UaLwJACAcC4JNZYxz8UHvaA47GfR2Snl57Moq92aVGaxrjB/XSe95G/yRY+SqySFGmEaGj+oakMqbmm/oQ1OXK7r55LSV2USw2TEHV6bjfnROjKG02z4ng68ZsQvWvXzdT9fJNK/ZIfaGF3hP3HlTd05WnM0zZyX6MbeJpQAHki5svPyqHiLzrou9KBwjeCunAdQEEbLRIcPY4UiCrDQMyph0COD46qcsB9/XWvdhFnjtK22lVdwtP1yA4ZAXGi+BrIDiQXz30GxYzcGYSy+QiLoIEcwE7ZV+kzC4z0Yod0vk1wlQwfXBLYu9iNl2upQZiyeje7W0N/2TG1tqiucfNgXBzuJWzkKp2DUcfR6LRDOdV0ssIO1QV6DRasEwiEuol/9CHczef97iX47fK3TbklrHdfiBbhyW6DicgLu9YYMPHqlOwdEjNedmv3LvKtdo75KE6Du/SeDiXGOXhy5MZx+NWoCKADOn8N29/8HJ7ijRM62GdmeTaYXxcnmMNiNm5KHv/Fw6vQURCINzcqjQoqWNFXe7n+LgGc1QRTBlVhcn9wDQ3I2N5UcVHz/vLtdqVAM0z24W3iE+sKqG0vphoCm0ht9dQ0huqj3jNbpUzhNEhbZAFfL/szOxkNW86BLtlQ8T0YOadwk/MIrabIBms8u0NOjq+zPsxQvlzGaBpVz5wxeAsEw0emotOgHbV 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:(13230025)(4636009)(39860400002)(376002)(366004)(346002)(136003)(396003)(451199018)(86362001)(36756003)(52116002)(316002)(66946007)(66556008)(66476007)(8676002)(4326008)(83380400001)(478600001)(110136005)(186003)(6512007)(6506007)(1076003)(26005)(2616005)(6486002)(6666004)(38100700002)(38350700002)(8936002)(41300700001)(2906002)(5660300002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Xx0csyT05QBAYQlt94arwS/NSxUH5JWAXjIhQ+e80HhoQ3waqf3Y8qLH8NZLMQTXbWXprOIR+7QaPrDXN4Qnv1b+aLO7h4+pu8qjhxuc2f4uKM9Dx5Uo40ZUGtvTPVMxi+RGkFYYd4vbutYT30jSuaatyA7tnx2POuTfpUfARL564QOSjpsoO2gTBQcRM+8qwcEtYbx0QRJeI4NXVPV3XAI84H5B+qvOUDrKGmsOxdti+Npuurya0Dx7TtzvsqO7sFKPmZLgFS9S/5rev9RJpOG6dNdlVStqhyJohXFItZfx7sEsFVpzfwjtvr3bBTjbzR+4mhjyuG/3YZNHeZOZK3DwKLqYvNyUZgZ5lz97flIlCUVGYiM5RY992lNUJAYY0sv0ADWu/pIZGZ0vCfRPeRfbH8KuwGFgJZt4JEtL9GiSsPGN+VlWjjvfUH14SpOGoTMXxe0XZxOEwXJMUfsZKWYWEXmGfdA/KgxCvE75wGJ2a4ofRcvn8S3AELmdfHBUXUUz76NuGuYYb6kNBGZPwnGh7e7nhH7f/3hR+t6oghecDTGErULFdVfE0DlgDjGgoeE9E/dyK6bjJ/Jr6ppW9NsTBREcl9oFA7TnFhYWiUcYeK8Vurb+c/0TnZgZMA40+XTrn08TH0iJ0uXNiOczKTtsoorIr3ppogzDanpyWx0LHKBmUzNOOzL2oBiYp2PHd+ShqH0BevGK3wr/gofvunUl9anvzmMZt0p/4LIuLugmTqUNaVo64ShiVJWHNDnORFXiVFMMriaL0MHVeAB8efLuaRhlk9gIjtKh1MHT7o4pjIcIb8FidGQ77TaT0+CF0vercLZVyeHWSHpfr5avW5tK+QrmkOeya+kdsx91AcRwVIP+cul9fC4q4wyNIWF2U7dLFUW3g1/imY2ADV00E8Lv79yMYfm5qtebNfkXAkp0Vcxx8Q4wEVuBkk/BjhZfl3lZNu0CMOCAfMuGUZj/YSYzpE1yq7Wu3Lg6JwPH7uJqDJkPaubJ+zPXbK620xUVJg6F92jzsdTr7cIJqC9vG3NRMowIS0aCNN0zPdNoDfmzIAu5Hbv3nv4UWlQvDZOZ6qIlOea0PhZP6evvtEbNhXaLZXXiL3f0re5JyLrngn6vUAkhr9qs+X4oBbLBG5CgIHpJxwKmqmockAKgBIKtjPX+WmylqVznp0rIKIKaapIZF3Bp2P7GzY7o9d/GTreMDOh1KY/ss1PHws5j/bVhGuucZsUcOimH2q4Zx1dTSXSIFPibyJZzLG4zb4eTRPA6KA2OZAvCM4/h9RTz+r+D0ERipLvjtRBtqquSuMSURL+I5y3Er6GotiFYY+i655gAp164FMJymLXZfp5T3+jGgm1I0eGYKq3qRIUwlB0emT+qn3uSpNfGEfkMKsXUrrrISPYrj0TzTX2e5LnCJ1AAI+Y0wk7V7pEYxJELCNtCFxvNSszjkMUXnYpkxXBj9hoGoXfE2MPwRmRA1xze/IZ2D14WrkxeUuzPnnKuGJOyC9LqzHl5oIy3Xp3lefRzxzveSvkU2+OrdAOa6ForL26RBAKHXsPimgBMUp9BkxENo77bVbvD0SB9oKPR7Incb6pw X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: e8c128b2-e4f6-4ff1-a026-08db27bf4af5 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2023 14:44:35.5573 (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: N62YFwcwJejKkuKHP2912b4WJVCmJ/iYNHlrEfjcYS9AsWCfIhm0aZt/inQoPvCxmRx2ZtARoMApq2VFMLV2bg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5283 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,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?1760717222229670539?= X-GMAIL-MSGID: =?utf-8?q?1760717222229670539?= 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 --- drivers/thermal/thermal_hwmon.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/thermal_hwmon.c b/drivers/thermal/thermal_hwmon.c index c59db17dddd6..ae87401b1a1d 100644 --- a/drivers/thermal/thermal_hwmon.c +++ b/drivers/thermal/thermal_hwmon.c @@ -271,11 +271,15 @@ 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 Sat Mar 18 14:44:05 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: 71617 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp325882wrt; Sat, 18 Mar 2023 08:01:04 -0700 (PDT) X-Google-Smtp-Source: AK7set82ixQ3M7pM1v7KZPgZynl5TWITOX4Vclawg4Tz7FqeFlxx78SrEoY+LourlVxcKVKLt5XW X-Received: by 2002:a17:90b:4f48:b0:23d:1852:d3b7 with SMTP id pj8-20020a17090b4f4800b0023d1852d3b7mr12027232pjb.25.1679151664068; Sat, 18 Mar 2023 08:01:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679151664; cv=pass; d=google.com; s=arc-20160816; b=ySGZNQTe+pjYqbqdKiMP4BJX1xB2cmN+pHAO57RBe1dY9EYlrqogScs7hCzH0lHlok Y22gP6PNn2Ack2S1pMKt10KQbgEtqlZ6gDpztIwrF64jcZimWxy2tYi39YAwuCDHqGmi iotEYg59V/XvuQfguFml3H/D4IFFvWxUBlLDK65QLnBY8hRLqV0GziVwVEdZskHRZITb DpXwboHJDiL8Nt3Qc+2A7LUJa10upLme/fnxDpacijebNKdX/ZabrYNCns/5HcnckoDH zoprlzI3Ek2CtD1Mhwh1PKR8Op9qK94MODXCblIaitHhYcfCXcOxpzuyCwpwxp0XjuD2 yx1Q== 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=XOQBVLgpalta000cV0syMmALdmujptmWpGBjRSRzoWQ=; b=qFAe5A1zAoP9nwIg3RDDg2UTJDkWcqZg64pSvuNqho43HQbhhmhIcniZzUPzpuqAsQ izdodLFQhjD+qG229HeoBquB+nMSw7o1CddYrj8T4PMerr3yVaFDeElOGEqbaJ979NI0 Zq11D3mu83Kng9AvSptGMrYiyN7ycZrcI/vIeyxXNtKmtdxF3M1guQINXP1dTX4vD2ck 9PHHnRlIuJiO9GtQzK7nwb4cfdVxF2VSWWfcVvV1mubTNLN5hmd9a51ONrVczdyo2DcV qVlPtgcGtdKWU8+xWGr2U2M1V1dZT4sjHhfSS9pboJslRrapCnfUY60ZZXCQ6KbDkeTo ELYQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="eyN609/y"; 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 n7-20020a17090ade8700b0022bec273f72si3622505pjv.3.2023.03.18.08.00.49; Sat, 18 Mar 2023 08:01:04 -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="eyN609/y"; 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 S229837AbjCROou (ORCPT + 99 others); Sat, 18 Mar 2023 10:44:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229808AbjCROos (ORCPT ); Sat, 18 Mar 2023 10:44:48 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2093.outbound.protection.outlook.com [40.107.117.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 788E9241C4; Sat, 18 Mar 2023 07:44:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=irL0RQhPxlkpPI0G311GjDg5GUudmCn/ofNdLrPQwOzioiLWCGJt6+uzUsdKpzzngj9qvQYzIqCffJQ8ZIdqv+NtTA+HO430MHD7WFe/VhwQi5DePI4Qv3rJeSLMi/tKNPb0bPwM7yv3A3xBmkMnq1eycmkP8L/q0M+lM44TqMAK0At7M9cCskPIN/TfmFR7faPSulJOj6gPQz92F4NdxSPpIsxsTiWzLnnhdhNnHnAxf/lsdjFyh09NTDcD5GhCc8JXymVtS0aHJJ+hY/CdzAgUYSFXfGZ46d7Gy+ys2UHfUfnPbSjgDugS5b5G97fyYCBwIzYn4saGxHqN9IBdxg== 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=XOQBVLgpalta000cV0syMmALdmujptmWpGBjRSRzoWQ=; b=b58e+4BoiejWoYI+Xzspl8c+T9n8kWGjgpnT/pG1gMFRJS711IhgNFIO93+Fjm0DiA2Thdz6/BythRD5pzAtO4JTRDiNVQfcJiqgtOLdYejyuKR7vk5Pv5mlEDefP1/7+EP069be9qXJLNpV2q4xplpcJ09OXjnU0thqRvPJtSFt70aMyB0AwWUTMo+dampncwV6u7kdAVMssaMgzwI69GyoVn2zEGz3SGw0bQgGRczqnp1mjIRxuqBSFVnhJYU8dT2PvMA+zHPxD4upRFZdwda1gNNRq3kM+lFkO2UrUi3DfXgvwK1ymWby+vbWZ3XhS2z+1pU+9cXwFlJAqect2A== 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=XOQBVLgpalta000cV0syMmALdmujptmWpGBjRSRzoWQ=; b=eyN609/yhzEpZIZqyEfwUUXiyX+FsOK/5UWb5dT0qT/beTyQ2Pfe04974gcxiSujQkwKCq4wrfWjfkIRmWbz0omoSxc/HJsrkPJ66SqBVDIXjad+jnCbQtIzvsMpSAmtnGEt8KzCbwFYeXKsjRBm7jj0nAaXUc1fqgxhjcDRjVqas4PzIO0Or8zSb9f2KdDfD1RV592uFR+Cltcvt+brsd3HSWJSefs9rEwYI38PWGv75mDtiuxvvPLLhc1gpEh7pp69qVFPKYgXzsWPai7i9ObCYukvv8z+5eAR05ndkYyU97G1bV+yPPaDiXub/tNcnPGQciSkIMrG9rhYooZ86w== 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 TY0PR06MB5283.apcprd06.prod.outlook.com (2603:1096:400:210::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.36; Sat, 18 Mar 2023 14:44:44 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869%9]) with mapi id 15.20.6178.036; Sat, 18 Mar 2023 14:44:44 +0000 From: Yangtao Li To: Vasily Khoruzhick , Yangtao Li , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: Yangtao Li , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 2/9] thermal/drivers/sun8i: remove redundant msg in sun8i_ths_register() Date: Sat, 18 Mar 2023 22:44:05 +0800 Message-Id: <20230318144412.75046-2-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230318144412.75046-1-frank.li@vivo.com> References: <20230318144412.75046-1-frank.li@vivo.com> X-ClientProxiedBy: SI2PR02CA0032.apcprd02.prod.outlook.com (2603:1096:4:195::12) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TY0PR06MB5283:EE_ X-MS-Office365-Filtering-Correlation-Id: 11f9c9d7-270b-4fe2-2ba7-08db27bf4ffb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KB430VdNpnP9enNPHtbSbYnWiduKKIqaAPUkzqj+cpueA4c0c7ISnfhBMq+GIOOY0v2N7BKUr28UvnOEbw3nyTznA/asJkTIzZ3E7wThCI2IWYm72TBXHFKNobuK2iQPOrs5D2nynjQinRXtF67sASwvmeG+/SRktOldOAY6D4bZr5IySVzyMvzHA3VQ+lHIJwb63RnydfV2RtF/Hc0Ab7yu1LtT6aSxC7hecYZaWWHhARnQ6ZrxJlJdbxW+ZRoZGwI/pGK79RaUPxzpfI4cR5Uq+wQVZ2f2g22qZIRWhI/tL0myVzfElirEpRNHEI/C8rBk52STB5gGIO3TedX10z3TwQtbZMiz8tPTTPXOEE7n6qKN8FjL3DXkXnfNMfIRJEnYzGWtOfMyquLOKQnZQ3clcgVerWm8QZjLT8A0rr2QYQEddsOp5mDp+IbQSvFyiE68XHnaC76oCPVbkLUO18IAOAYJdfel5oGjeQk/95bsrWskKeluMF8rBUNYZDypqGLDqR5nBa6yy7TRpksnxTroCUyt0cr+mTp06zKc+Vyyp/3HX5E1bCzvF7dNfq/zb7IHWhJVHb7jwpsFmVva8HaaalfaaY1WsG2iHa/DQnqY/rBCDT33dD5ZaKtlI/2yzPFrWViVVDkIC4LknHFrvdHZ+IsHrbCeKURE7oaGy8G92/hfG0dJx+r/E4SomtpMsP8HZtmUgcLK8jgXBXf0/A== 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:(13230025)(4636009)(39860400002)(376002)(366004)(346002)(136003)(396003)(451199018)(86362001)(36756003)(52116002)(316002)(66946007)(66556008)(66476007)(8676002)(4326008)(83380400001)(478600001)(110136005)(186003)(6512007)(6506007)(1076003)(26005)(2616005)(6486002)(6666004)(38100700002)(38350700002)(8936002)(41300700001)(4744005)(2906002)(5660300002)(7416002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: P636WBjLO9Vx+dfqLJDT/GDX0IhbEjZmUPM/rImA9wjS3mzNTKEa43Q6UTq7FdurZdoddeUzCMcI4AXUUI4O9IG2UokZlUrkeFMkkAjqlfeXLggeGn3tmnvUulh9TCYgYZNbStxxHcQXbFJP4LmlIYVcGL0yJXBTEeFzU5f9RRCuYigD/K0Z+23DSGCRh/Us9dtLd0ePA9hI8BxscRuI9uuSIb4Tu+jBGREGEst86Yh4zQg3qvCHAioNvplSXj749ACorwXqP6F1Qo2x2fHaWNMAne9svZQvacJMaP6wvEkv6+rF7Kqu+qPa6bFPOlbeQ6bZehRUGQWFZIMJymgygw8EiH5N+uT0N7umWmfRfzYeUHagGu7pLCb89LUsLp79q2qmQ9sIEJ70NdTbyrLxKt1qDcMEk8TTY159M/oXHLW7WykTcquT7nI2thjCnaFIMFB+MJiXelDIl7kkY/NxwIkCrGM8rAigKCNNGMtTEPxQcs63PJq7VdecPp2RVmeCZDtwJ0JKBjMBMWdb8eRAGLZ02G6ZIYyRbFwyF7obAnZh3w3ORrTfxBCkunsd/Du5Hct/CJ05yP2Q/J8aRfXr1JaaERGPqYsHN+Y++RdZBZCnqhW4buAPkF3GePPZdzuPSUM6HzQnXyhDHEAJwQTpXs5wxB8vgQaPeSsciQZCp3Q/bD/wN9peGMYVvSXQXivpOf10AD0VxgPFpb4UV2ffSuNB9JRMSEeApd4sp+6OZGIHvkB0w2UNBGxDeWMuOxpsn1WeeyJcpLjfd2TpnQOgiM80bUfC5qcvm6dg231S8dSg6DOXe/1WoqKyZsp9rUBhHbLn3BZ5pa0ePd5mIKFiCmLI80P+pb7r2XZHT4MTe/G8IbFL9OvWFKe8KaLlFeFpZ0qweln9s3hzW2FYRROvQM8oNm2quCPoj86BFCS2HiWBfgUBJtFQD/IvYOCZ4DZ++2jWxZ2Rqm29G0vOKQUe2g1TUSkZLtAjtWqj9FSpOWfwcNDJDlmLQuGjRmuJY5d2wMnKlRFWEUfMTWM2dEGTkhcv5b8Lro9OM3BKKQB4/Ex9MTZqXnnyKlYPNctxO6wnIjB9yw6MpWdVi9/lzii6yoY2KMCiZ2AIIkw9Veu2JuqtvDF+Ig7FhXQ72LoDEZ2RKra/5+UHKV06mi/ODihMF6ED27gmCekbkM+JBh5yeBgciX+3ET2IqMcMCTj7KfCRtPTqJHaOGOxrUFSQ87nheQNEW3ZatFb82nkZmjfOVturDg+N66WwpNoaHVP6DUeHWlxnsgoV/Fmbmmxk8i7yBn9EFiLf85gKsmnXDosQ7nwOAknPzjclkg7vnEsI1g9PCxW9BdPoj7ceBAJSfwZgPHUoku5qiiOlGSTqP5PJg5W7RTn6oZefGpPkoP54/GMyx/U9O3GrzBWBXJqxLe5TrRmutOuz5K/mIlJvUc2hCLETaKN3+ueELpBLoEFhiU4C6pVv4uGA86oLKakO+LQkfb50ryGxv2YyuaQhQuoz8AWsxMpjbteObswRei3KDiVG+E6G0kqlZ9EnNdTDhmwU4V+bLe1GRWffJX0fXcgdgOcNVC6I+tVHFx1m+eFEZY+D X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 11f9c9d7-270b-4fe2-2ba7-08db27bf4ffb X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2023 14:44:43.9342 (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: QqUS4EFL5hw83iXPAlGqqIzBAzG9ObVnlAdJp/8Fl6C8twzOgUVWubUH/EgDUjYVyEr5b+cyHdW+7jXMrQEHDQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5283 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,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?1760718134864293547?= X-GMAIL-MSGID: =?utf-8?q?1760718134864293547?= 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 Sat Mar 18 14:44:06 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: 71618 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp326013wrt; Sat, 18 Mar 2023 08:01:15 -0700 (PDT) X-Google-Smtp-Source: AK7set++UzojXQSv6RlUjWBTVIqln057MQlMG6KkM9KywIzbVT0hw15i0G7eaMDs4Pq5YU54CRvi X-Received: by 2002:a05:6a20:4c89:b0:cb:2c7e:b673 with SMTP id fq9-20020a056a204c8900b000cb2c7eb673mr9926941pzb.37.1679151675383; Sat, 18 Mar 2023 08:01:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679151675; cv=pass; d=google.com; s=arc-20160816; b=UhpcToqUXLeVfrUGY7PzJpkw7jnaaGjL8HTqk70xGxcH+ZrQbcbMtciH5/BMEUagKr 0NO3+sAhE8m1UOOxnWFtWAy6PRBF0Rd3dhliXgnHkHPUSUFFzw0gvEqLxSV/vHauE0eU 5qjAA13VfcGOm4L+6ehMWzApG7fgUa4pRynUh+SI3fY/6x0kZ9q8ckpgj4/fvPTPgcSo gN1i2Iv4psCC1CS78WCi/DMlUTVYUkBS00bOh6hWCdifTtJPH0KCIGEvMkT5CsRDiiB3 MggbyFMU1zEkPpCbj2WFYR/jFlYYr0oL3WedOiRUgB5bcqUB2DJVZ30VNE6y0psdjUEo nXrg== 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=WdWPrAePIX5gXg748q3W1bLD+b2XDJQ1Z+lyypoPNDU=; b=zlxO1c77ZV8JK0zhAd2flOFpcbGWds9n9ADlu0BZTVIMCSzat+aRzB/z7wYw0U0GZm peQj8guxDWfwgC1mZN0I0RCq1AJJ3/U82k0vKwrA/e5J+ixyqUJbUHOh8VCRTBXbZi0y nXs04EL3khhws2uLWfiFvJjB3JVEGaZWrfvVHRQGwVvNEELYC6EIbkCYSHxWnR+88537 ie6Dd0Ost57gvUxEh4vkJGlWeqVEcXeLd/wCpFeysF5/0JULS5Ts3/YaHBo4OsM66Ovr UMJimtzN/XzvcGNwSr+8NMAYvmrLX4Gwb96oHpvNn4GvTFWPURKedAy7Kd857W7ek/1F T7Pw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=beNiwhMd; 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 fc34-20020a056a002e2200b005924b9f5b9dsi6027864pfb.333.2023.03.18.08.00.59; Sat, 18 Mar 2023 08:01:15 -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=beNiwhMd; 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 S229886AbjCROpB (ORCPT + 99 others); Sat, 18 Mar 2023 10:45:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229902AbjCROo6 (ORCPT ); Sat, 18 Mar 2023 10:44:58 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2127.outbound.protection.outlook.com [40.107.117.127]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C49BA29400; Sat, 18 Mar 2023 07:44:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ifuPvy+aYpsS3YAHApNNcKmPBGLdqTvSBqOpwTBeDT28Zm8neTQrCkkGiKSWL8mBEgT+tWA+RxUpL2epCQjv51hCrQWZeSfWFdMiOdzOSNVQfLd/73Y0XGD+vdVqnjZHrOltNxehXXhVg5FZCYkhdrmKvfrZ7ZCEIKNm1xBTrx6+8Yv4/eX5S6HEHJ0++aG/ZuFY0/I6SXSHr8ePmYg3eNg0YRyq/eqkH0moiF5VUNZy3+xl6jHlqMwMKxhoppoge2oPxnYKwiruWR6b0HLANC3glFd7QhEl5KrstKsW/lDij4VlzwX7ba8HreAZGCtcocSDEByxJGPmvj0Sc7qBRQ== 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=WdWPrAePIX5gXg748q3W1bLD+b2XDJQ1Z+lyypoPNDU=; b=Bn38jlAEXZZQ7UDSiPAyb1xD7WBu9j4vptdJG2I09POKlE1VSg3sPZX9QDloNK7f/maah0g6iX9//2PA5+E5trVmEYfXSh/dVDEtxDoRynMey9EeYRmmEsuaZu7FkjTiQtcbXtLU1ajexT1W1a8KYcHu72MitzpD8jSJLhUvp1vjxeuYFJnbIcqth4B3Ho8v1KD3xOUBB6z2XmjEs1jKxQFhm+Y319uU4PgUTSB8nGHQ8O7g7aFt9oTF+ZW9TcJ5WaALX4vcG+tAxjn+lFIIHG1k0AsZvkr3/sRK72NShbyZ1UzXGxDYkH1Qp7aChsN8zpLEwDqcLbBH7Jj7gSFkYw== 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=WdWPrAePIX5gXg748q3W1bLD+b2XDJQ1Z+lyypoPNDU=; b=beNiwhMd0qF66LrcdqZfpLjRVoeHhA8JAImzegl0Skqv9SaBj9demxauMjHsYjwEThfwmoOvM4ZDrxkvmv9eLKagJVDKnOLWgvv55LtdPa5i/jjn59KdYyeE4/KPXFRoutoaRaTU1r/Q6HVUKhAxSnPZrDBazfnRb6GS88/5e7zC6Wfnj0BRT4M3X0C9tAANT/a1GPDX9ubm/b+QOgUAYsSgqgUDtY8cFU0W1g9yKZyI0gpjFOgCIblwRfJF9aMri9hvYXQJglv1VCul4tXPFv5Cybid29jHkTcDHsKizZpfaswP8R+3OeLYE1jx7D+Yr4VEdRiwOHPfEC900ejusA== 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 TY0PR06MB5283.apcprd06.prod.outlook.com (2603:1096:400:210::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.36; Sat, 18 Mar 2023 14:44:51 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869%9]) with mapi id 15.20.6178.036; Sat, 18 Mar 2023 14:44:51 +0000 From: Yangtao Li To: Guillaume La Roque , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui Cc: Yangtao Li , linux-pm@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/9] thermal/drivers/amlogic: remove redundant msg in amlogic_thermal_probe() Date: Sat, 18 Mar 2023 22:44:06 +0800 Message-Id: <20230318144412.75046-3-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230318144412.75046-1-frank.li@vivo.com> References: <20230318144412.75046-1-frank.li@vivo.com> X-ClientProxiedBy: SI2PR02CA0032.apcprd02.prod.outlook.com (2603:1096:4:195::12) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TY0PR06MB5283:EE_ X-MS-Office365-Filtering-Correlation-Id: dd3cc387-7436-48d2-8d2c-08db27bf54af X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KBvBDaoG59gwg3TPaC4IguELAvcixG6Q3mlXU8veS0749SmuuE2p5IQHDxjYLk1fuCiU7+1ZcsP7cW6kOCSx3Im8ZYUV7uB66VRBuSmfAI0khqUcDLG0g9XEk26ViHYY41sSwfahwMujiK4+1VSIPXkRMc8WxFDW1rQIX6wzK6ND8TlR5oEEELtvbLb0y5VVA9CT+U3Rq7Ot2EgcxSWeUXGg0ATcooMK++aET550mNv7DTGHAeLfcov50dqnROkI/Z5YZI1wICy4T2uOyX1tAdg0uXsASJ7Ug0sa5jr4mzm4QsRHN4KEguQ0eCV6oxgIyQECMsTclH6T9xObkRwVWNHGLO9wdEF4o6ToZuHikffUaERJSDn4QRj9zaO2R1nN5JuL04T5eWoT4l1HJdZPi/IP7sPicQN5aD6KzxBIq6szEjhy6pV+2C4FS692s1aQi9FfBBiBVFHfpo/IbV1WnY3GMiKx4fcr3KAFKAN67xnmXje4FPGYpVwN1qt/jTDN2GuFYc0UKTlL5sc5QmPuk8vPyfueJbmP/exa/WMXg3Tlsb1rmbpJuPi/1cIpXioFlNI6w7JqVZCg4UciN//8V9h5NnK/JX7ITxjCuM0PKI4UvkwaNlxmHq+mONkJa6St7jOjDMYCjlKn/HF0MshSpM2ssOAsB9vb8TfPdtvlaGBpyCW92/bzehutZhye4ZradndASrgZqqhHFtEZL2kfAQ== 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:(13230025)(4636009)(39860400002)(376002)(366004)(346002)(136003)(396003)(451199018)(86362001)(36756003)(52116002)(316002)(66946007)(66556008)(66476007)(8676002)(4326008)(83380400001)(478600001)(110136005)(186003)(6512007)(6506007)(1076003)(26005)(2616005)(6486002)(6666004)(38100700002)(38350700002)(8936002)(41300700001)(4744005)(2906002)(5660300002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 41q87Uf1OgnH4ZGgUJWPGmfALqiZVJ7dyEWOopVuAl7VoMb0KCS4prcAm7E75NWxhQC1jtsrSfjRA3AcxES6Qdl/KEYqoRcPRhE0AXamC2YHcyYWIx7qcg+oYWepm5V8ecLJRoPcSiAqBsbPv25qUmo9cMzZYOjnWGMoGJBNBP9DN8jyzCaspaqU7Drx0GM48PihTztainv+6NUidvlzIVykA+uiecJBNJWYDZyMg2j8Fg/PP/SXh+t2KZhxsd/+DFnSTE0EHhkWdyoICiloG1Iz2x5lQvVCN9FmiURHZIEY97dkf26Qmok+jd6nDx5G8GfhIT2tsFMb11KagOlanlsTY4LkwWSpeD/BuJp3l/2Q7UszK1umpty9ij7yrsVDoVfSZjTc1cqRK78IAJ/DuupmZ7XqAZc73LjFa0LzmPf4+baaFxkgdFlTTEN1WQ6OPDyfaMwIg4JChlvWluMuMZrbPuTlw4dy/3UTZdDxDPrYiuwA7m6HRqYQJrfrRgITJtN2shMlj6DJPfsMOK3FRJqGqGJrBI1lsIpXEQUJ9XR8B7sNbMtEzPkluxpjZz+6S30gv8W8YPeWQ03oXVTTdIZKprwEKVIWRJcLpmi666luMjWAsYxGxz+aGDLPWj/9MetcPTy5zrWkNgVzX9uB0JXyZD98RpSn7FISRTZwztH0sx/58yZmQQ+hjKOPkxILdCx6t5KcRvRQuSpDYCTqz0JwrZi3WkR7oZoMhfxvvxLZhALWzGdYH7NnN249wTu8YD4Yib0oEWJX/2x7nrdrD1t4R/ra06OX0mrhsU9bicIr+cYkv0XG7mJLvz4yS4kprFNUGY9fL0usxss8vnOFvfTDBi/zZ6r90iJeG4765pcugeWa1usShLO25Dhh/RC27YfsZTa7YTOoxA0ksEbn7GrkejBe3R8qfUXjRqN+JBJEwB5fCHyygiTgP1PGNPwza0ghXaPV8mW6qJlRyXNb55Eu+v10H0p+f6XTVLMbubuh3WYS7UwUtkqf0tlfOvME6vdwZncMfLcSGQFDvHHSsgQjCjTmf7GhT+saqKxyk1Jx5fEKXBtA8DrTwFCMQU775ps6NNjtb05lX7UbbJ21Zo1aBwBJtyPAhD7ObMZeJxeHlX9yPkjj0e5PoYcB0Mz0TAW6nJNTdXInjkgHS8RvJ60SSUlv5dgEWRgh8mdDRO7+ru+TR5G1vPTYOvvfeHVHM0tX2jHua/mn4ZNTryd19zqeb4UnYCB1O76AkZ1CSYVPXnyNCw5Q5IWuEgt0rmv5drHcEkL9xH63rFHH2lkN4xJu416BvGp898N360bfEbd4vIbyu+IZeN8vSgWz3fLz3x0tb3zbgqMKr5dN4oeVWnyCaRJmnarAqMvgTy6vGJQKgaTLSulu3KRGn+ct6j5XBLNfBfz9GjoBUwmy0rY4baMAXEQNtC59gUkFNuR2cJ5462QmMJUhMobKgcJtQd0ydowtoCIty7bFbB1ImUA1mNQYbMUaJ2SwHOcKTqlgUAuaz+66PW4HkLS1KVbBlv0Di3UwMAwC3d76EqnRaPJ9yFysohdGfE+d3fvEvrznRFo+E9+1La7EyXuIi2RyvuSi X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: dd3cc387-7436-48d2-8d2c-08db27bf54af X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2023 14:44:51.8115 (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: cGwzv5zdIaYoUE0mqu44GHRrew92KUABnaCIXiGACOGU9zUu/jr5IHsfp8z0PgsfWdnHNQ4gQk4ZgKSL+XvWsg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5283 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,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?1760718146773070714?= X-GMAIL-MSGID: =?utf-8?q?1760718146773070714?= 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 4bf36386462f..16e52e26a5d7 100644 --- a/drivers/thermal/amlogic_thermal.c +++ b/drivers/thermal/amlogic_thermal.c @@ -285,8 +285,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 Sat Mar 18 14:44:07 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: 71623 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp329341wrt; Sat, 18 Mar 2023 08:06:41 -0700 (PDT) X-Google-Smtp-Source: AK7set8RSPEpvkTV93MSWcBIM9n1l8YvD+wI27xMM/DIapts4P+AgE1XrYXz1VOOSFEnuCr2fDPc X-Received: by 2002:a17:90b:1a8a:b0:23f:4370:2c67 with SMTP id ng10-20020a17090b1a8a00b0023f43702c67mr8672299pjb.26.1679152001436; Sat, 18 Mar 2023 08:06:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679152001; cv=pass; d=google.com; s=arc-20160816; b=uAdvX2Vj1S5xYcDtatwTBm8rZSYraN05L9fM7CdHsb429yRtPr9XP65WiW8v2aArql AaY+9rVcsLX7QKfVGnZtd+yLi0q6lH67RJ+h/++g452gxQsVTb1fO+5D3foBpwYzHHbu PSOh74HNCBGDLTRgxZC4I9cO2ZUvBQ4wuCHlA2jtz+zaeJXIrS+Of3RfCYUpka+O4FDt 82/Jyhlaz9Pn6llPdHv+HsYRWBQ5hb28OEUePXZsK/gINeiM3ESX0ld7QcEj+SBlPM2/ CLDcp+jNOej+YpfrbfrhgI/w83jkjyRn7sPKayk0g89TBr5NYqNXsdP9+3r32hTI/pHV w3YQ== 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=RGkoe2OMWlCGJ7PD5WcRuYFUzk2FY6bsdIkAZqphzhg=; b=ZPduZnhJJW1yd+NzfEz0S4Ae8IawMcfdI6uOKwrt5l3JIzzFyxH8NN2/7jjH+E0u7p h8QgqQBZ19j8aNwSTcMkwGM7RmzXYMBcPtY0bZiHlFEy4fr0dCVEFJDOsuAqQrwJodmZ aeUReyCm96YKwoFGetjOD5muuxjSgHGnNEj1mebxyiOIZArK/+QNqAF+TgXfRUnoMvaQ +XMKC979GjMBSN5jUZrjsMYHJrWEqxF3hHUJOhTzpZBTCAJ6bOGFMBjeuGuftQEoCiYi MI1skgh2z3ymaQCUl/IdFrdUCqSw8gXpp3utZABJOSIHT8UPbawI0ttGZXg/VcY8VxkO fVOA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=XcIeZC7Y; 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 kk4-20020a17090b4a0400b002342e691837si11812874pjb.21.2023.03.18.08.06.26; Sat, 18 Mar 2023 08:06:41 -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=XcIeZC7Y; 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 S229550AbjCROpT (ORCPT + 99 others); Sat, 18 Mar 2023 10:45:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229845AbjCROpR (ORCPT ); Sat, 18 Mar 2023 10:45:17 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2092.outbound.protection.outlook.com [40.107.117.92]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C529320D12; Sat, 18 Mar 2023 07:45:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R3u5cpxvOO01RkHqEwuPl6+cXb1J1rOIaPUsLDeohEHPSzCSwHNtsqGUn9QEHghJPo1GZwEbNGQFg8OrRRDCtgewTQKou+9ZCGy77v49vfAHgc4f6xdfj8BJqaKQC3m/kPUfRTYyOsjcyJPNpTay74zbiHLYNeC3Kf7THns3psW2LEJheCGyBKLMGacLTJAZfmN0qF06UAkE2YokP/UnBsndLhxmxWndDikWyZn14cgDQIlgnmdB6aYJY90m0lSaXDP3nlTR3lqD4Xknh6VxL/sy1IjouE52kuLss21k12ZvV2Qui0baZL/sPrlrUVxpX987ELKVKtoaUO12SY5XHw== 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=RGkoe2OMWlCGJ7PD5WcRuYFUzk2FY6bsdIkAZqphzhg=; b=KCFm/4vR8q325qnQM8oNXqdjkCEHkKUDqY3H7NFnrqMXsVJgwJBhxR4Lg2j/9tD9ITAomP/ElCyfWNWCQJM7Uj1kINkeYPFsUh7PaeHyPmysSubEMxK/zSE6hjQvB8cYYk04SBY+UOfIXOnyEpB/uh1xP77+BEDRBXeMEiSPIenvwzNeBVOk4+Tc/Upkme0Yksx31my96DDbUB/0hES+C41PzlR8RW5AjS5b2HYEafs8BIUkdce5+5k8RbNcuzDge4Anv0NApPrUfqxS6h2tDozdxU16Q6hoJZXvCqawYooReXQQvVhaG5A35o96cxNmyqzmw5AXvePXacopGtp+Mg== 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=RGkoe2OMWlCGJ7PD5WcRuYFUzk2FY6bsdIkAZqphzhg=; b=XcIeZC7YwrwVsQ0IL6ga79LBbtOUJ4maBxoLmgeDX42+loHzdFyEsL4uHysg7iqFsydVOInPc/LZZDX8SS6TBMTWXOOt395RiEt3ymANKjn/PY6pPE5Z/tR/yU8RcvoqDdYHGA7NNcbjr+aZvG3BC3/Zr/CjUzLPskCm1qG4N4jAuVDFeW+hBkOVpG2f7Dzd5zleDOeqYHtcKLuEnzZpivuGPoYc276+N7tWB7hdoGoSq7lGQeJTYKNsGiaVkbrkkgFKom5nnNr0vY8JOHpRfD/NdhdRhKxtG9pJsGDYlvD94EHO/4t1iSg/ucFNPKTc1AcdqN/DxybTD9zxTWNZ8A== 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 TY0PR06MB5283.apcprd06.prod.outlook.com (2603:1096:400:210::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.36; Sat, 18 Mar 2023 14:44:58 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869%9]) with mapi id 15.20.6178.036; Sat, 18 Mar 2023 14:44:58 +0000 From: Yangtao Li To: "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: Yangtao Li , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/9] thermal/drivers/imx: remove redundant msg in imx8mm_tmu_probe() and imx_sc_thermal_probe() Date: Sat, 18 Mar 2023 22:44:07 +0800 Message-Id: <20230318144412.75046-4-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230318144412.75046-1-frank.li@vivo.com> References: <20230318144412.75046-1-frank.li@vivo.com> X-ClientProxiedBy: SI2PR02CA0032.apcprd02.prod.outlook.com (2603:1096:4:195::12) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TY0PR06MB5283:EE_ X-MS-Office365-Filtering-Correlation-Id: 524a2dd3-1af0-4aea-be11-08db27bf5893 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +ulouShp6C9MAmttC/fLUm73ouV12ytCtXc45JNOGf4+Kyvxr5U1aPWsqrAs4W/iTB7VsdvAIlzI4NIj/s73HFOB4ZAOkWwRdUQ1l4/FKqzHpV7QSvmp74mV2E/vWiLr603Q+CkrfO4Ko0vqiReUDtUOj/Cyty/Ol4B82fkJIgupZmHruxbRAjDKBFDzhEqcBit44M3PULdnRG+b0yrskIH45pcrlUcaXeBSij7WJui7jdr+OAh/KzFBdTMWqapeFIx28vE3yIVeOfox922mBHJ6CgDWGnjpJqG+wKM2EITxgqccYzfrFJ417SMX2YpV79HRL3XbW2YL+xyw3nnkyJydvpSxOwliGe0PIrEU76Ei728ZFzTsm3R6Nat6dOufBokJG5pUjNC/vSwJizUbh8CeSPlDaaSjf8fmEXlgr7oOnbyIPfMbf/0++WmQbUoSuhumOQhbbdhjf0DfbWAdLr9G5j07UfTxUqLp/cnSHyUGflnLfnjkyZyDeXGwGdKNAKApayVJ0QPo+LDlkc3DE+pqbZ6YKx+FO1/8DxYfdBCUl3J7ganibcEio9hL21at1R4W3e3QFcEMCIlPvcfcTEb0G+zxkPXQ7e7QE/oYH7ENfNv92958Wts+fNwckPLRnt2poKeUN8BeMEUoiFFDM9L9WDaBGsn0pCo8H9qEsnRHJGyEte0HPDY+rZz2L3EZ99KGjasDmd5FpR1TnjUMMA== 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:(13230025)(4636009)(39860400002)(376002)(366004)(346002)(136003)(396003)(451199018)(86362001)(36756003)(52116002)(316002)(66946007)(66556008)(66476007)(8676002)(4326008)(83380400001)(478600001)(110136005)(186003)(6512007)(6506007)(1076003)(26005)(2616005)(6486002)(6666004)(38100700002)(38350700002)(8936002)(41300700001)(2906002)(5660300002)(7416002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: cm2Z5MFsbNQrliM68Ke9j+ozrhqfGQrUUmHwlFkw9oTxXKQYmQJ4pENXE5RrKHWkuv3+25BDmnBnrtjgfwoe85Aa3Vsn1v8tBRLSVeUQNartR4DWE4/1NtDuTYThGcTxPST9C7DPTFiDmZYo7QKEqOkQ87Ycjvqf70bFXk8EFwnz+3Mf4T3pTA4ZYy1yyRIlU4Qcln/meM0cVffEJfRHi9yaZKulzIyLetS/swtIgVuuLSycyJT1SY2b8V+Ba1oiq/8AK1GTX4ONr7r6WpPaqS6KWDyejwJtbzxOX/eC2o6OVAcR3RzyACoeoXSIuMdOrkJd1CNnTO5g8vTJ/BI+Vuc1RT7q505BTrZL+quIow8qJsO3NuogwdBEFTHE0eeecE6ISCgmA7MW402FaVwJuJAtggbs3kuTnaGM16oDQIjx5tA3T4rZrnV96RSmnab23d+mU/OaSWGfDOWdn+KT+3Y+59apF/xRXMxYy/WmkEjSddauPZlAimsep7GOqZmZ3kbhZ5bltefzpVmRgr08cvCx1XArrYMq2XEA1gJbZjPcsQEq0C15XIdp/F+QdVd8m/sG7jDmxUNtYQEn4fqiiWikOZXy8/VmYiYC5v0owV7czaztn3+4XxIEOEjyJIlOBNGSmznAZXdJenA21bx+4RMthvV6kswnZ3RTKbSZHA8iolaHHIsLuEAYmqu/IvSp9JXHFeomXp5neoI7DCWPfXq8ldwcQlYpkT/2XRHE5Qspa8V70DPXPUZGjogIsA+ryIH1B56/jM0jrr24wHHrDfjeAgb7hJ4p13yUkxYJJPriaLK2MLiD7mIHes208m4IzJRhlQ9Pvm4pEeE2DRYXILoKHw8NJYHmYrxcawE+650eFXkGUijXG9ZQXeTa9ekhJy5/vRaxG01vtzw4YIUEkJCrPMP6eJwmSHT0vv96SPw1LgmVpI7voV2gs7IvFFw3SOH/cZOnu1Exq7EMWTHYN/KTd5UsdXqiYrXBsRUTn3urPTffX391bvEmt29FasZB5dZFRYm+1ZJDkbrSM835cy6TzY90HkL98iL7m7fqlyEqldV+LXGhdhKuIL/PmNCmmCQvNlsVEvoaGU+jAro3JopP1i8e/vm9Vk8oBEyPPLrzPMOZXxMsGYELGyap0v+jU2pEKtOaYj8lYNQxht+PaAKw0McNEZvDvgNzSUV/wRUHcl/6vOXgNIBIL7BOaPbTNTwN0GGwCEGCWQTigSkcgee2hMafptV+g9AG025KCI8QoPU2f0kLNYEiSvukLsjaHkgctAY7SiDbY8lfjTOgIoktIlS5ps9tD4iLYHdOxpdVW6JFXsBW8g5gu4nmub/1zn30l80iejWooxjwn6eNlW7/PFs/ZDepky6tOpP2F/VTcym9J+NqF0ofuQuOX3chEAeWbnUSRU1xkXqyGZ79Cgc/MIFBfnv/qfkolYSxNv9lhCQ2n256HF4cE01+Uu2zYMEGY1cmiZApDTIzSCRyBJigg3xttrw2tII0ze9+YBdbG8isedgl8vliwj6IJzUyyUm1h3gvTNGzLMHgtQ/8AboOxdih9Lvs1qnzVCt09BTT7V/wYyCxgo7jAVDEb5Ca X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 524a2dd3-1af0-4aea-be11-08db27bf5893 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2023 14:44:58.3558 (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: vkcmH+lOKvOfvVlAn2yjRXrwMGjzTUA2WhVqHdbfOSGfZXqqWjPLC7jszy8YTLxgPI0lC2+Ghjeo/0pnANFpsA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5283 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,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?1760718489105777853?= X-GMAIL-MSGID: =?utf-8?q?1760718489105777853?= 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 e0de6ac49469..d837e2f96397 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 Sat Mar 18 14:44:08 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: 71620 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp326346wrt; Sat, 18 Mar 2023 08:01:47 -0700 (PDT) X-Google-Smtp-Source: AK7set/F2VMc91bN+krlhVatlxdDQpC5SekStRHDlLQbRdyt3/j8N1pN8r3c4lEJq++xKCYqh9tv X-Received: by 2002:a05:6102:2e1:b0:425:9166:fe37 with SMTP id j1-20020a05610202e100b004259166fe37mr871269vsj.4.1679151706903; Sat, 18 Mar 2023 08:01:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679151706; cv=pass; d=google.com; s=arc-20160816; b=gYn0qRyFSP/XcnStoyqPWpH/gbj6KuCEcYgm7rbocE07LLppsDFE/6vBMSXdVMPlwr bd4q78fI1VS6efL14hUGgIbUPG53rxuPhzrc9UsD7rlWcMJ7BlaMaCF5bkvh6rEvWsE3 A0Bu5rdoaMx6w0JiYCRZ0myB0rrkAANz0bclhhEw2TXGRPzydCe9sGDIudYMZJOs3e/5 Y89C4+tmmqVHjpVqM7vzDy/H4VaBLWH0m8BqLE66voQHtl8R0sw08cuc6SHo852uUsJ5 v63SUTTurjWQmb+biohMAAxn9OwvrU12RNaSBDT3yK90KVzv0PzeW2TSIgOxFggrGk7q +phg== 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=FPgjRdTG+hMN7F7k8sc0g+Xv0vuUpY8TpbDOsACKB94=; b=RUG75JMAaZY73r19yfguqxqImjE3a1oLqLmypxg6Pd7rDrrhsnmbcsnihYxyTe76Tg sN7Ytgj11FDuUHx3M7eFY1K1lknokz+NwIlayHu1tRMeo5iGf9Ai2uN2iuNv3t9O0hFj qu/O1UU2e5fpYVM9gqXY3T26Cn/NXBthFCy95n9t7VZ6494Ag3iHKWMPw+YlxAn9dgtC ZoZ/uW1gy7ja5DA8avtrGbTfmN3m7znMHWvHwIFvS5EpqES6tj+gjAihSdh26M5b9IoI mGq9NBfXsoyJr5MZJMNZTcvNX9QK7AXg9b4Po9Irk0lpS7QZ9BtNfXsZ8rbiPm4phcmM 1B4Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=ZuTZRbPs; 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 v9-20020a67f1c9000000b00412d62af5c0si1395921vsm.390.2023.03.18.08.01.30; Sat, 18 Mar 2023 08:01:46 -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=ZuTZRbPs; 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 S229502AbjCROp6 (ORCPT + 99 others); Sat, 18 Mar 2023 10:45:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229576AbjCROpz (ORCPT ); Sat, 18 Mar 2023 10:45:55 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2092.outbound.protection.outlook.com [40.107.117.92]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE4336594; Sat, 18 Mar 2023 07:45:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IKTUk+X/BjFJOoEimfc9mMFdIazg9Fe/ELw1dGH4IoSa7Q30CWm7YdYSQpwwoNBjGeX6otQcjxciE3YYAi5g4GvRr/J0wByxuLB7kvuXYxPVdGFmpNX08nZjvOxokM7+4dvy6xctvm9KK6HlxaXNtJFX/d6o80sXXwWHNOOqwjRWke/oA7Sv+T82EdrODvc+iZnTo/+by2mfjTgvFulOoL/khCPW+IXqL1n2hLW4IgqYRk5S6riF/E9ix9/vYnpw0wxLvaSMbu+pZpmRysJuXaOQNuxl18rRRja7RqI+qj42Y+QUQxDiWAX7hsG1ghC2QGJ9li5DUP4K5/O9aW5oCw== 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=FPgjRdTG+hMN7F7k8sc0g+Xv0vuUpY8TpbDOsACKB94=; b=QNw1wm1LbtnXxU29C8q9WJ3JXWsTcTvReShEaAkmAZlf6uB++ZD0/EQdR0PmXz8HibZ1MpWTVCn4s5WIMoZo7PyrER/iJClFZTO6J0xqE8A++YNfb8eaIiNW3eD34K020NGG6bqA0Vk12kp+aTXg9KEXJOtPQsooteH6lYqgLR5PecNB0PRWlvFs+RhLaOz61UcXbDvy4St7w8srtqjrkBzM09yEgM14PYLWhDTlCHqiqlp4XiFvml/5x+ewIV81iKiK8x66bWXgxCWo2Rg+JDWu/q5SFyBNS3mPGdIFsLrl9xI0yN+F3Dd7ye1l3S3haeH5k88i+RQY+sBw5oCu0Q== 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=FPgjRdTG+hMN7F7k8sc0g+Xv0vuUpY8TpbDOsACKB94=; b=ZuTZRbPsKkbMlUfaHM5T/IsB+90Jzvx0puwxB1Xizfp2bwFmeLzPdDG4QVT34u0xZ9T1cs6UK6M/alTU5DDoqVQae+0shhiEYGnNwfxQ7bfhWRYproCJwapaXBI4xmUJrYfM7HFQy41O46RnI8Meo878/wF9n/PuJC6rDda812xWp80IOsMS3beylQB4TcpAgVT0ktveO7lYa+sAU7XMz8Lu/6JO+b+BpzBG5dskM6TE4ksJlRlLPhpRoemwFaBKi0Rx+hnk3ofOy/u2688G7qOO9ag11JJjCj2V0bu4wcSY1qYWQjdM+Jb2IPPb/+SRB6gPrjaJ488WoWal63hMhQ== 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 TY0PR06MB5283.apcprd06.prod.outlook.com (2603:1096:400:210::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.36; Sat, 18 Mar 2023 14:45:03 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869%9]) with mapi id 15.20.6178.036; Sat, 18 Mar 2023 14:45:03 +0000 From: Yangtao Li To: "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui Cc: Yangtao Li , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/9] drivers/thermal/k3: remove redundant msg in k3_bandgap_probe() Date: Sat, 18 Mar 2023 22:44:08 +0800 Message-Id: <20230318144412.75046-5-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230318144412.75046-1-frank.li@vivo.com> References: <20230318144412.75046-1-frank.li@vivo.com> X-ClientProxiedBy: SI2PR02CA0032.apcprd02.prod.outlook.com (2603:1096:4:195::12) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TY0PR06MB5283:EE_ X-MS-Office365-Filtering-Correlation-Id: 4c621cc5-0c95-4004-860d-08db27bf5b9a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Maz0YcsY0ElucPBxGmetD+ghWKUyp5M4ksj++Eub3axULCaUQrf5UH07BYca2mMC9GhxCHOWuzAe7jBf5P/a90MuwKqmmyGev3/lBqd4SoLcuiPQPtiwepyG1B5W76rd7SLQYroOCUaAM/6ucGfpC1v7T0/f41O0y9wGsAF7waj3PcDL3dgBtXzzEPGZg6FMa+Y1d2jZ5tcStY9pmUu9gIX2qanKtHjR2RLO3j+cPEW052V2IHw1xxETLu3fAoO+Am0SNZcB1uJBxZnWT3pmJTtU1LpydggBM+ruFKk6sc9/4YeA8mHWSGkW3OuvnqI4pKc/lUEeEdQD0GJRcfN4IVkdmJYSZ9zAg0OatNz5GJ4bruAe9wGTF5cphbq0ogrN6jCcT70kYSxVTuewLZsaIj8PKZRJnlJQkkmbHTl2KKUnDOFVC626y6pZqU3rLXpzIl5BQn7FKwpaV+ZDZopN4c0t1wdbOsBynrAFiPHCDW6CDe3HJbqgAkYfn3kewvMwjLO8miNQXeLytA1SCx/DthXUDNpNNdtV4eF/thdcUtXV4DEf9f3kQs/Y2tyagOyJ6E3WSWZj1Qx+dHp2cpAq7RsymOBMyKa+PqTw6hmnGbicAPNDnjn69AR7kSK5frKdI/exQrxtJFDjEne4g+LRjFAZhOChWtyCpnZ9r22y0akfY7lZT3zslYdhHdGgthT5iIutmYusa9gmB+15PVsA0A== 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:(13230025)(4636009)(39860400002)(376002)(366004)(346002)(136003)(396003)(451199018)(86362001)(36756003)(52116002)(316002)(66946007)(66556008)(66476007)(8676002)(4326008)(83380400001)(478600001)(110136005)(186003)(6512007)(6506007)(1076003)(26005)(2616005)(6486002)(38100700002)(38350700002)(8936002)(41300700001)(4744005)(2906002)(5660300002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: U6rloF2b8++ZCerWclkgfbv2gcrYqv4OSElxViD3KzVUw0R+RZo0h2tSGfuHSrTMmnlpZucK9QNd7koMWFKPDJNo7dFuZ1a8Bd5H4HQXXrWYnD0+SAJhKZw45C7aAGcUnwPMnpIEO5cEG1bOqxQ0b6rtQtSMR7Z7J0Stp7oZLCob/o0b3H4UzkI5g1jLTf4hCTaH+I7irTouqdh7nfRbWohlAGqaCt82mf99JEkGJCpi3JQ64+LkpF8FVOrsxSp/AG7W74KgLWy8cK8OKEmjaAQsBMwgA6jmuD3ToW/6keqqT8T9f6vXJ9J5kKgT39FTMR14u+vnPf/7dUl/KzDJ23ghXAXFOUTSDnW81simIQeYkLZKZYfIO6rsB6vJWoY6cOC5SChrmdaGdASSFMqibwlK2so3605AHvvaC/rgpdRQg3TjBVRzlKdqpYvEiFREWXIVnGNhjR3XXdQmir0TLM+/tfDmsHwhJnsv8Wht2h5vWYL3wFMupioKAbZRcQH+A2qwr/ehyT56IBTfIgC+RY1X/DFyE9hzPLSphKtHP3Ilj1Bo14FZI8SWTbQqr9M2rngTDeSK+iXody2z2yIJkSubBzTbtu8zsAyPe5cifMZyxgh1lDisCehSUqggtc11Ij976siJM3Fo/76uP9qajHrBRQU2qPPP980mjvdSiYPy6jyhEhOq67qh7rLCXIJ2cqjzWy+ZOypH5i5S52FRensZVPvuprKFd2370XQz8Tqpc3P8KRgw3JETYuHeZDRI0pk24OG9oAb939KSvcHdqH2y6RFg/FTvUEi8HNkZCAP7ZnbtcTaSSvDWWRQlGzdvGUq8GepcVrCcQxeELr5GMb+VboxciY9/WwF9qHqhafsjc0qmx5kPGQcHp7aBIZ0/bdU5vh0do1LvUkHoDTEeegwepkVB7EtacDx59zXbGPxz/tdZ9N3RgN7v/r5NdWIHkwtx49oN13oeqfK7+UhGPPJgrpohw2GE8YNIvTCDBz7lrj2ysw3s5azKHrWSHEpqrAs8LE8Fk5oV/L+T7YCrUipRCk0u4gPUgV0iiIvNP0XVpCpHOZamkq6ddC+SgziBqUxkbVUQRtWLW2/jvfn2Zcgt9swcqzJH4IA3ZVT+zGGMsclVS3TrRokfmc5CNO/DHWphjNJyGTP0XIuezg7d4f3/lyn3j68OzZnaSvWxVNAMx8PcQl6GKptiJlOqDdmYHiKft8B/XTH8LXaAxDvIMvzK1Zecfno0G9YDnR61ZXmb2BuxcMbZdZIB629B1CY83M0elk+b5iW9ZmDoMMEMPtUMhYF6VI+0JE9xTrchN3K4p2/oiUIgKRbUi2B+/RfVRme4FVYPzgjF1vaQXRWIW7RCSizgdi2LnSMv8ydWIP7/ghaqPVtH/9RKAT/DNt3CwiE+OcODsLq62LQvcruhXlsSX0HpEY8ZeLneTPk3SS7gELum15cAH/f0xq8u/8HtmEES71o5wsWicpjP3XwZ1MiAJQ4KDSmputdtteb2yj6uPRtc/gTatFwiiqkjwNo0CgXV6OfP9l7MN0igbFxRM3k1uQqe+erhNIKMI1eKnRfJYBI75WcqdHFzsjJMMJl6 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c621cc5-0c95-4004-860d-08db27bf5b9a X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2023 14:45:03.4178 (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: 6grQPsNCjCpO02mZBylzxTuwrqCAQnZ36Bb+uRfy4W6nUzAOdN1k4emllD9oHJE4PewOPo2EMZWadma5Qkjl9g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5283 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,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?1760718180415002169?= X-GMAIL-MSGID: =?utf-8?q?1760718180415002169?= 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 Sat Mar 18 14:44:09 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: 71619 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp326247wrt; Sat, 18 Mar 2023 08:01:36 -0700 (PDT) X-Google-Smtp-Source: AK7set89jaxtQ5G+V65Lp0Ie3VDbMcLxBb4AZOCS/cFhbziZiOOrcNGrq+360bzZ3SXutbYA/LoL X-Received: by 2002:a05:6a20:b9e:b0:cc:32a8:323f with SMTP id i30-20020a056a200b9e00b000cc32a8323fmr10418345pzh.38.1679151696322; Sat, 18 Mar 2023 08:01:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679151696; cv=pass; d=google.com; s=arc-20160816; b=mMfZwRijV2Dvy/WwzWlrz4ecSdS9g6ytiLLMNdhMHuIxVZCuaz7Z/ZE3plCZ6nRj7h rD5RHWaAR8FAo+jW3zjYeMbcDsun/R6c1d6VXieFv00J2oTJ+bphy9SKY0Uugli/qcPt OMOPS4ZRJBHD4UkRmDZ27dUc69rDRRvRRdFtVJcTHaUKeNeatITHblB4fgm8FNmxDnnn hDGkSlnxxATMNoTjcD88encsTW/Zao5o0KMRH6e446HYXlL/qfLQg5S1qt8uXrhWye47 A2rPqZVjAZ/Tf+5550vpL4QsuK/ddrtr2LTat3DsI6tLDhIIa6arX0ejsuWCARLt5VHM tGJQ== 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=5ABVaGWq6+pqdvnxH1HS8iSdqh5p9v1Isg9QcR1uEE4=; b=hklSzoW7UAvcIGZ6diXkeSwPJr4e9j5ykS6gbdKcT0HJ/2lFDCvfdyxzIkvnns6j6o s6f9bSjXN5ctc6HMTLl0ohSnxCvL3S6Q+QSfBnGzBj06sYR1f8AgOlrKCIzYzSbuWXYQ 5hAihQuxmEkok8aNbJrsEKa7HrQwXd3Txd7B9ml+kH4xKa/xDJfwN+/Jj2CsOYgjVHeq XDyN54IChDt69dYcaztk77Vxm3JWq8IsJMk33tIGItqWl4Dg9MAFreQgByvNoUKK8Mzb /EEn5LSsuOCFmuHt4sl+K4v9rB1wuBUo8Xh/8fWJNBFDhJ+eUnH0i1Ph7bv9qHG7EYS5 9Rrw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=D4l5pKzI; 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 b15-20020a63e70f000000b0050c164c8e89si4356943pgi.858.2023.03.18.08.01.21; Sat, 18 Mar 2023 08:01:36 -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=D4l5pKzI; 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 S229655AbjCROqe (ORCPT + 99 others); Sat, 18 Mar 2023 10:46:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbjCROqc (ORCPT ); Sat, 18 Mar 2023 10:46:32 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2093.outbound.protection.outlook.com [40.107.117.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59336231D6; Sat, 18 Mar 2023 07:45:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YhXLWVsVfJ7mnOdylui1dcrFYw+zmy9tVUup3fUyDD5n4s9o/33V07HMf4b1p6tDtEHNTsSsT5Wz7OVoNcD6n7K8q/DJt6dwWpjDgpmZoJPqsmeFZVMDQoWKolX667oJ08hR5TlZSJvmE8GKJzPvxl1B2jhY3IQZhASrviDZl87LaYzyv3K0L5E9/qE4m7zzUmPvDRISZhefdlWhEALocyrdhAdwZwFjSZ4hqHKtF2ZKf6T/rV6RSO3nf9X4AknwY5uiDNXSUIhf3dS9Nap+be6FxZ/15DztXaSYBVkkjKvOO1BLlDd0a1EJfHDLT+uTPFdAVL0xJOxRO3ucAuzJeQ== 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=5ABVaGWq6+pqdvnxH1HS8iSdqh5p9v1Isg9QcR1uEE4=; b=gaUInh7UPl0y4DyUzwXZSjmrfGv9XG8IY/3vuJI9VxnvN3r42GBre7VdPg7votS3Te85vnULfJofKiVd74WmZSOl47K8O7g4yp4lUO5NkggQAPp46ru3Ut01JZeiTTy6K/DtJHvuy6sYq0qg1S/Y5dNMe5nZIVEhSFu7AHF5SHu4DvO9WezbBDeHYc/9IJmsgwZ7USJ10ZoCTSrPjlEbq5h5aBRyqmBUx1hJYSTKOQvJDe+kqA0gzQsmlMoyZe1iIPEXEVS6e1xlY4s/jdvZZ90CxDcaymE3SwWgn/1TKIYBBZSzYCGuyaLASD7g54UPn+lukfv2kPdSfevCXx0MKA== 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=5ABVaGWq6+pqdvnxH1HS8iSdqh5p9v1Isg9QcR1uEE4=; b=D4l5pKzImqwcrp9EuFgOlshNOB/o33iuFb8AV3cyFf7hCUeGmhjXxmg8aLcDoPUzQozjPjeMgkGUtPaIZ6i107ieQFkCYfu/vl77OR427i3tiqlu2APAGX+E0OPqzOLvmq3s1yV3d0BmMgDOs4Ab9BYSvek6DFTdjDfDLaeagZV3ADp38EEB4GuuL9J7kFkj8990lLhy2iz69AjYwsbwXl0Mxbd5PU37sg6TVqClAfp6aCjUDs/rnd+qzj7Mx6lGunat17RD2NP21KiTeeUFbNBnrjC4kl1ZCgl3ZlofQkaENtqt//SUvKx56dA/8lBkS3Xl4j5ugG9PcfrtQauG7g== 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 TY0PR06MB5283.apcprd06.prod.outlook.com (2603:1096:400:210::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.36; Sat, 18 Mar 2023 14:45:08 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869%9]) with mapi id 15.20.6178.036; Sat, 18 Mar 2023 14:45:08 +0000 From: Yangtao Li To: "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Thierry Reding , Jonathan Hunter Cc: Yangtao Li , linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/9] thermal/drivers/tegra: remove redundant msg in tegra_tsensor_register_channel() Date: Sat, 18 Mar 2023 22:44:09 +0800 Message-Id: <20230318144412.75046-6-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230318144412.75046-1-frank.li@vivo.com> References: <20230318144412.75046-1-frank.li@vivo.com> X-ClientProxiedBy: SI2PR02CA0032.apcprd02.prod.outlook.com (2603:1096:4:195::12) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TY0PR06MB5283:EE_ X-MS-Office365-Filtering-Correlation-Id: 5a162406-f4c3-4d37-d1ec-08db27bf5e94 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +Amhp33FPibEkOTegAvCm/p5qiIk8cdYQaCQ5pX+DhDFKuor6KJqJqiZTy7OsK7w6/Bem1f/KYhjjSjG3dlaNwo+64PxCe2Dstq/WbB1Ch5KVOi106aGdf5dwIVN8Hju75N5jwjN/fMrK/c+c+vnlxAn8C2OEcC8wh5GnADrvXElOGGwwAsgEl++Y0AWXJuXC6fcFwPkbUyUVptjg0myU4+Gi+11rrbwg5i0K+Gh5ylxWyL6onOp5kiw9Uxz48F+1jqt/u1oddXHUh1dww36efOBEeovKZKJhPqIdj8UPCnnF2B/HUjbs+UGEDr24RPEpO2eqEcwcy2GtEX7ZgsKy+pgTlbFWhmgkHO5M2rOH7Qsdsg+xY6d/ERVHTadsSa0e+yENyoMyNM295TLYQzWhuukMksCBGdWU0FxPGZfAIK1lkN34CNmDurddM07DfJF1tLnYL3Mt7pLp8dOmcNL+dhHab7ZmCLw6NKpFM6hJSN25pqEYv3zuRnp6T5r++RLMmQJHpLMALPEKgzt8jI6eZCrUpoQwv7n+jwnHnBLDzIZxhuQdNf4sU+ybYxOt+CiKJUAQy9MG51aC0C9TZUKOVVAO/LEYvALFx2WyH+lLg2cRuXPQldkKKn5fsMXMQQ0J57VcdoJQWq1F+dU2BA2TDxczPLOVFUX/oYlJ+fvPSvjwwISYqC2Byl1mQlmazRDR619kO21Mr8iI/o2a11qWA== 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:(13230025)(4636009)(39860400002)(376002)(366004)(346002)(136003)(396003)(451199018)(86362001)(36756003)(52116002)(316002)(66946007)(66556008)(66476007)(8676002)(4326008)(83380400001)(478600001)(110136005)(186003)(6512007)(6506007)(1076003)(26005)(2616005)(6486002)(38100700002)(38350700002)(8936002)(41300700001)(4744005)(2906002)(5660300002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ZP6wpyhLZ2H9UDihHj/eBi2JAH8fldeBWuJMe0PgfP4jHNhcS6BCwpSXXr/WVCfG7qv9SJujcuqfRwLQl4cVwCkGy0j9f1L6cefGZ2o2OKK7UCJYjEJvJd24FzWr6x2rE6adw42cRZSYDt355ug4lV9Mwq4IxGbQdIyDsvXst4IxFZ2L+WHr6XpxT3dmO0RD57E9RhBtPK/znOjFJ59ey8N5PLxNqoXeb4s4EAnlP3uzPnIx4DzlGgpyxB34pxESjK6BGX+wGAfJAEzbBAMdj/hUZ8QjYLoNCTO0URomhjZFpkQ/0a5vaP77t9o1hZ4Zl/2/FsZxfoqu4gtvx/MlKnumeqwLZZ5pURMSLiPmjTrxS4L3v/W01yli9xOOvcd/grboSYkR3u20UlwuKOzRfr0kvdiviBrg0+aMeLUyTinG0CI8Sw3U8kLXP0WqBVdbujPTFacpt8t5aYmxNucbkgh7IzFy2rmAzZmzwOEqDq76TbBQYfft8p2mfF2lEUjFcuduFkLHaRa1IqeiMdTHzo1jnIoBhc/tNQhZ8zYNuqv32NgAuO6ZwBrrU6xAL+n6UQgzdVBlsH9axbQ1vQRWQmoS/Yb5inBv1c4ceLYl8Eds4gDnefFr6btCAkT65UZpycG/PjtLd/HsunZ7UNVizx5fJy4S32FXckq9eOPFuuh8oSgWUHpwhjmYEXbqlCoXout0yPvwVkCT9j9427cc8z86HxMY0px3PbZs0fe9ciChLl7JYITrn/+z2LHZVjMz8X/cSk1K8FWEl+dqD7eZsfPtI09PeJBSlefN+7DRN+ZUt0qrneAaANC2kNyKJF7D+SXBw2uVdJJhuXk8ThkYP28YRsbZqKqa7NRqEA0lhZbp/hqZa2neFmcpPwRn9v4HaEvJI+TodvzXNZIepcVFjlwwXPvCckNnbDgGu7Hz+NsYUi3Hmce6fFgt/OiZJoeEmZU1GWe7u0d/j8TtRFpkkvweY1qvIyYRHgVXkCwHkXNVtMgJ2aGEVEil/BMMnoryTm4T1EcXkNQmgtZmNobydO5KsWDI20zbzZxvyG41+LN6P0r92vO026+LHjvZJ921tzTbK2P9IJjWg26McSjjF1Y18rXSbuMe//BmUFQt0maH7Uxzh1jtc1y9xvQlCbkg8ipGmtMKqaq2Kx7zdVg3nodhDJW7IeLX6aV8/7EnNo7aZ9PGtOfrOHbTaP2tSkSUEoDcNdrNXN2QkstHff6gsiSbwd42JgdHrbftyixoRLtS9t6puwBtvT3mfH0+FqkykdNvZs7UdzVfztx84xRTA/0s1GcpnzQiFUgCcV5UpTmCXbovWDu+2EBA0X5qFZXV4MiV9EslGHzoeRfBNWcmrbkr0YT7XEPXL9Ws1IS24FDfhCe7EEcB0hTZ4NoU+NeTPN2ojUxCj5nzGWOGWtgbNpYn3XENWhbBYI57h1GkTlrStUeJktlFt6WaFrF/K+90+4xoApHQk3gsXqL8ghhrmAWb953neXRCH2ZWs/ALeVMY5lkepL3ue87QXQnzIb81dKnXQj7J/TWkPQBYRUlOgF1A8HzHGZkOaPfm5tCyyLGYpYedL1td4uEElHUpWq/O X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5a162406-f4c3-4d37-d1ec-08db27bf5e94 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2023 14:45:08.4292 (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: pNIRiYdYuWPWGKdhCOBf9rQcBT+1k/XDNQYxvZrNkG2cCKVqoLY/aVtWuvnvOHpw0GHG0I1rYUnXilxM+pLLbQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5283 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,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?1760718168880605849?= X-GMAIL-MSGID: =?utf-8?q?1760718168880605849?= 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 Sat Mar 18 14:44:10 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: 71616 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp325783wrt; Sat, 18 Mar 2023 08:00:57 -0700 (PDT) X-Google-Smtp-Source: AK7set9qBWhDTSpug7KBqQ4sNkQimMueuG3FkgHH4g6b87jLVXv8vDK6eKX5uQFKs9JVIupizpne X-Received: by 2002:a62:1b51:0:b0:625:500c:35bd with SMTP id b78-20020a621b51000000b00625500c35bdmr7721949pfb.6.1679151657380; Sat, 18 Mar 2023 08:00:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679151657; cv=pass; d=google.com; s=arc-20160816; b=G7YAOBI0mIoP1LHs1uTEh8G5mUyqhTcagevAcyIhX/NRxGrVDksUt/wePH23vEruIU NAV/pDQC1/MM+YlNjKpxBCWb14BGMmI485HzJgTB+Os1RSWuM3DKQ3cfFGlbjeIYodOC Azt3Mg+teVDDdJBCAxPVjZvdMzTCM25Vr+7SNrkpy18QNnNcXOfcuUhi5mJQpSh+VKmB K/IGVDgKSDeDaExY/on14RobW16vP+caG/YASaXvyrTI91qhShF1UzgnUHEEePr1CCet 6zIyp3ze+9iy5f8F6WVBft1b2nnwt8JT0C55KbauImEubNCRydOomzP3D4BzJ6zUff7k F0Cw== 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=RTH0G+5G12eXJ8x0ITh15l9zXq+RDnTvyS5xuL1Ncck=; b=IoNn6fFmtDgFeHC3rhcwvfPxwFrm1861xmRskPqCSH0Lq9WLA02zJXXSq8CrQ3tgjA cZlvVhyNFtNCoZofknRpz5JHLeDvnJiDeqDzTOxewUfhxngnH3PZnzAaGgMQv4H/R5/o uwswaQETLJTKDW+DNEKxQa+OGwUMHnThAAuFI/kRVJEC+8p9+zfPo0W1OoR2jhCiMJ+8 YWbPoNJDgQ/FYaKGNngFE6BlhtlAB47gqlGZNnNELTeLn4vbORIl8T79tj2I3OQfnfh9 K7VCH8zu/HmSCk0m8NGdcXxYFu3suf1zXLXDX+F+Td8O0zRK4uSNjGxhgESFRL7rnN/9 yaZA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=drAnEbjZ; 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 z11-20020aa7888b000000b00625951b2ed2si5654742pfe.49.2023.03.18.08.00.39; Sat, 18 Mar 2023 08:00:57 -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=drAnEbjZ; 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 S229925AbjCROqi (ORCPT + 99 others); Sat, 18 Mar 2023 10:46:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229845AbjCROqc (ORCPT ); Sat, 18 Mar 2023 10:46:32 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2092.outbound.protection.outlook.com [40.107.117.92]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B8912A6F1; Sat, 18 Mar 2023 07:45:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KFHeNvv92/YwBQumknCVah2/RITA0gVyqgy9OjNcDjPwurk3eIn8vW5eUwsBKAmXc82fmvn4YJ7k4L10a+9K9evvM1VWkqIVmefJORITxRDZ9QHq41U5SZ3uWsleQT/B1mfYJBfvdxRVW/1sQWZL3R76hPTIQLiIjyzYNIt0GVH2SBVS1gsYWSRlgfJh4r0/txyBlh0JC5vTWzP5CMhcRvPkymf71LLbEV9jCTJs5/niPGuUA4NlEqencHnXQfZSJWe0At0/Dzr+OjlMvn2zmWNTxQwGX+EyFafSJqwMYMOCviEa3Qdsr6GXTJVPdB5IbD91Wa3BW0VNJ0+Yv77oqg== 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=RTH0G+5G12eXJ8x0ITh15l9zXq+RDnTvyS5xuL1Ncck=; b=n77uOkU1rsslcKXzXhZ6t4hI9ZC6e7P1oSZUSluWXH3r3PYjweRNjprYVVWw7fOVDHNq/DVg78icxdC4g+2OOL9kFdfhDS3Pj+zTX5t8MvKnJ5wrrhhVEKLMYlcyJrENviDsKKEQKrgc2vZapic7QvkGBQ1E6EMCizUc415BhLmCtZizgYMk6qE8FRcY+aUDFFeZ8Ruzjol3NHVnvt2GlEkW3Ub8+FT0iTtRvb7UnQOdhx2JnfSiR8bdXz6ap/pLjL+shujGQ3Bn9fjix4M6k8Y+E0R5ffs/B9agnHLxVfYlNiRjeeFZgaFAC623CxAss+qZoVBYdUmZwrbYkfzOaA== 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=RTH0G+5G12eXJ8x0ITh15l9zXq+RDnTvyS5xuL1Ncck=; b=drAnEbjZO/QgvcaFnFa6iqfscUbwkrtmDNeIc55+fMVb9SwsUAjdqg5dUNKHD7cHEqtJK1CScQwg77FxGztJ9FxVqp48n3SeaQN4QrjM4Vz6y+BWMYFT9y10HnkitgOr2LGHKuPMUyE+mwDv6NUCjaEdCoi8pyHEgnMCESQEm5GR0ANarO46K7n8dXJqR2YZo0fuiJsQun2xbY/Hxc/UsE8SnnMJIXrnBroGBSUbsDTLAn8DbcG8zuy2cH2Xk+T+Nje44dKB6foHqsQr6fuXnRc7yEh5SyaYzmFX5ICeKNvb8ctU8zmMBvnLNSFKCZoQ0CxfC22YdWMYojBpzRnyRA== 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 TY0PR06MB5283.apcprd06.prod.outlook.com (2603:1096:400:210::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.36; Sat, 18 Mar 2023 14:45:12 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869%9]) with mapi id 15.20.6178.036; Sat, 18 Mar 2023 14:45:12 +0000 From: Yangtao Li To: "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui Cc: Yangtao Li , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/9] thermal/drivers/qoriq: remove redundant msg in qoriq_tmu_register_tmu_zone() Date: Sat, 18 Mar 2023 22:44:10 +0800 Message-Id: <20230318144412.75046-7-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230318144412.75046-1-frank.li@vivo.com> References: <20230318144412.75046-1-frank.li@vivo.com> X-ClientProxiedBy: SI2PR02CA0032.apcprd02.prod.outlook.com (2603:1096:4:195::12) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TY0PR06MB5283:EE_ X-MS-Office365-Filtering-Correlation-Id: 877e84a7-abe3-4d16-8d06-08db27bf610c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EQIb4DtBfGdSnGfI73wxE6OmEm9wrbQkw/Bwecn7jHGwSkiaRH3IEUa9UDIGziGD/a5pq2u1Gy8tTQApxm/d8vFZtVCFo73HKbwjwnM312QB7sDOJCsnGUcnZIEe9kGtKVjuo6YsNxAuLotzpy51PV2c8vumthkUg2AGse1+hPaR7REN+Eq7keg/dQNJS2ayUziYSWpXsSEm7gE/GPi2ANgwbIPf5gve5lMzWl0gj8thGG7aWRTi37VkTsrnSplOh4hbXrIhKDo8xQ5b364bJsisNyJf06x6oTXBX+Od05JagCIzyfPxtpIX1Sr7lKeEOjPbSCbpqf87BZR422RosHdJ0nka9y++tPCdBkeYBmLdkY8ib/D7q+DiTKl0dwcTg7JSzDSPmcg+AuNw6r6bSB4TWWscGtXS8WuUOko9RNBqg1NU5O4BQe5m1mykpASPo1j8ru71buiOxbnWJE41G2xNdBmdwqrSqsccz6ch3Xcx3GGi5nX4iUGpfXX/3oG5sNSNM+Nl1N4EE7XOCuawoAk+I4ucHZol/1Cm27VWe99gtUGn8REx5peuUIlfht2JEGtk+zQc6tF6qvBIeVg+ogoPMQuo1QHGkZ7Ky1OHCzVwWL7e8m8wCSiVJIb4d1nsmAa3wFwcPGSLIWP4ZJRhUumKczce4ZqI6CG5jGO4GnokERBlnCvDukX8ewz+RnlVX7U6rcePJgYTkBPDFGFL5g== 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:(13230025)(4636009)(39860400002)(376002)(366004)(346002)(136003)(396003)(451199018)(86362001)(36756003)(52116002)(316002)(66946007)(66556008)(66476007)(8676002)(4326008)(83380400001)(478600001)(110136005)(186003)(6512007)(6506007)(1076003)(26005)(2616005)(6486002)(38100700002)(38350700002)(8936002)(41300700001)(4744005)(2906002)(5660300002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9EQGbv/SFBxMKJkaEz/2fSZLFszc2RhzynEdrl5DCj8DRX/vnLrJijZwe5C6RmvrfExB52q2CrylM9NVnJr3OYYRhE2QjPge02iWpaDGbXgBCUOgqlLlJK6XV+Pxfqs1zvZuOXTbAFnkPBwoaFSmJQwoLZal5I4yjctjKxQc1pBfEIJoJd+pdwB9yCRToGb5JW/xfAuJ+TwSNcKp614LMSEWDdaMm5WhsHSVaY7tfzUmR/Pmq88sR28L/vTD6ttUS6S6W9/6h5D0FTtoirkKHOzYxn5vvQmAahO1RT9h2E/ZCHe9dV/DM4BC6fNWPxGQZwBT9gxjYJdQRxFXsC7GwgbLEN1FgoQI7z7CL/ccEIVrnjoeaUCu/rA1vvhMq+fJIe338QNAhHj+dGpOuf0Acj8KgQqtPuuGDub7m1c93Ic5OpN04oeuL5AZs9Qc+EvE0JmlM5pRBrXpKTzyO3XjGADCjxPpjcUIFp7QZAKRE/FJZwNLYwaaK8Abi33+Wkt71px4RmjkPeSF+kSWQsoBj2+aTtIUjWWcnGCt8gnhcS0dJtDRhXhMX49X/AyCJhmHSoBgXC2KDuxxvBMq3lkxepaOa9v61i+8mvlB2pLiTiM8nC2bnGKFZqZMid1PpFrew7RQCvkd/rSPh6b3u8p3cawT8+5bfCqX7x1v0YCHGmYHok5rseRxCgCMSqDOnAqBkTKSthGGxabBdWYZrMIW/92RgOF1b2zBz++SlSYERyFS1Dsp5qyHO0ZjojCBiI2eGXI9yRcR1Wpcx6KTPU7Omy5aNw1HBVTlARjsri3mq8qH6QpvieFrV/iofvn3IzB7J3qtI/WkPzYLyskdfxNlqnMUT1eg7AjidUqUTJ6jUW/4pi6zJdCDARTN9Wo7aF8AH8yhV4dtVCm7q1cglaQ7ylDv4Ecb9AN4AifBn0SEQ65IS0wzlN+A8Atcra+ZDZW3vesBv3A6n7JtbSTRVAZp7RV9we7W6sLgGpvTPBEbR96vOv48PNAmMd/p8pa6aXFasNw2akxpJoHwMQG/iV2CFbZDNQoWN+OlB88oyOUvshPKe3k+IH9ha0SHFCnn+hjKXv+4LJXMo91pAML1K5E5Jf9FGk4kOW3zONx3QtQ3uQxsN8L2qHNPATe/e1/ot2iZVg4vOfYzQ+dxd0be0WoZQIfsUQAyldHJh2cTJ169UhA3FgVRUGgFf4ndfjU3qLjOwKEqrABiIYAJ6ZSeYVwcbEzMcArvVdATodEiHoKewKnH3eo9wt9U5QY3reJNDEKBcghFiZ2g8PvmzsbJpqcYls6KR5aMNRvUKNLwO+LOdFvmhBVTuMFMwYpkft6tm4ZZTtjuJFGOWLyBZGPWt0sKh4Uadda+LWq90KjrPZYe9Nub5tLHP7DYizUJkQy7lYy0gfbCxnHv4+Fr/KNJHqtC9XW9BYUfTWTPY9s+m4XqxW2Rz8rioGbizMmbivNIjiIhZWN04hfFcCPVbsl077+oan8AGhpn16Q4uHM5GplETpKsCz/fTb7/po2TAH74RoIb73o7jCmYuKaaQ99U19zvpohKiAjBI/4qybrQWqu2A89QRD2Ld1cxEo+zQT4aVaSK X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 877e84a7-abe3-4d16-8d06-08db27bf610c X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2023 14:45:12.5695 (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: gpuW1KMLW3O4PJhW8k0H6UJ3U98YGojun1WSYvry8NbgiMWT02LjBbtSXAS/ycNq9ElcS14X7TIkQFXv0/Q54w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5283 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,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?1760718128164117717?= X-GMAIL-MSGID: =?utf-8?q?1760718128164117717?= 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 Sat Mar 18 14:44:11 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: 71629 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp335617wrt; Sat, 18 Mar 2023 08:19:36 -0700 (PDT) X-Google-Smtp-Source: AK7set80EoSRmxaitos/keqOTcNLAosy6EnZDC7EEb0rnv6kTv0DhE3rozRmxhaDcuSAEM/9bk66 X-Received: by 2002:a05:6a20:a025:b0:bf:4563:e647 with SMTP id p37-20020a056a20a02500b000bf4563e647mr12543464pzj.40.1679152775784; Sat, 18 Mar 2023 08:19:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679152775; cv=pass; d=google.com; s=arc-20160816; b=DHtaYkiCczawySgSzt0AmirDVTZ4Yg1Qgc+RKT7DoBThWCPrYaJdWZflSdLSF2zRDf ihdNIydp6KhUB/Ku2trMg65WifJot8b5XW0LHOkePwO9ScoIUslqVupCghOZO0K2DT3a T9/beModLi/JXZ12tUvq80QOI55kChQasYYq7UJWopXTDMzV/WKHtQVulQHtFo67EoAP j7v6/ihfwefrCKuRQxURnWE+MRyOVh6vaP24R6Gq+Xsly95ORj5jAEfUA0XorYFNKcLk AIvwnlrOuNMU7+rBM8OxRUvy/s95CvCNswl21+Y9f5U/J22X9N/qoFfTxy5n1vlIvbh+ 3/Ow== 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=GE3MEtYd/t6m9uX7tsCrsm/xazH/HurMYPLnGfjf41A=; b=kX7Q77CkZ43IqpRUGdgqkrOGbwxWplv2O++iargQwOP4oICvQzolBm6tYSKVjV7JL8 OilBPcp5IarRoKydw60jTftiEVGIKP42R+JhD/5vWj5KdlpARXkuDgLbTwG8gFCeoXh0 PVQb8xPMe5585nQsLAi5E4648yEbuhylmcVYBDfQduDzO59xH1bhR2RMIFipqphJJo9b TUUU5F7zJN7ZKTYVfDJmfZG7dsl2Kp6KqCaEwEeKNtYIPn9XBEyXNmOr0JZymm0PXeaT rGqSQ8QdIYyaJnTEnjvuHv9DeGz4UkiQ9Ev3eh7hNRd5hui+/9f/fKM1wU5ON4ySnJ0J A2jw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=BstLJmB5; 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 t3-20020a63dd03000000b004fc2def26adsi5325838pgg.197.2023.03.18.08.19.22; Sat, 18 Mar 2023 08:19:35 -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=BstLJmB5; 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 S230002AbjCROrE (ORCPT + 99 others); Sat, 18 Mar 2023 10:47:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229942AbjCROq7 (ORCPT ); Sat, 18 Mar 2023 10:46:59 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2109.outbound.protection.outlook.com [40.107.117.109]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4378DCA2F; Sat, 18 Mar 2023 07:46:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JtighpnZeyUCP0N8ueMLoTWZmULKd0IcA8fPSyZC5IzwwebHBwzN31ySC/hUI4zXysm5traLREJNz1di3g/dFXUHRkjGG1FBjXGM3ChqpxPhdguCML6JTrej0OdsAdFhBA51ECHOui1dsNzFl9d9aKqwa17Ev+w2gIkEgtoyfBLMbJsRFVzxN4EKLsBTtyv+1ENowM2sZX5+oJHb6sBg7Pum5ytbKY0nz5dqP11Qb+j+5Dm/+CPOLrUEtEnl5DK/tLQY+FRW3WM3Ds9aCB0B+cH57WtOu3BGKJ2x3zXVLuRdxPSmbCyRxRP79WRw0nSIVZ5d+JDvcowUI3rgCAcLjA== 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=GE3MEtYd/t6m9uX7tsCrsm/xazH/HurMYPLnGfjf41A=; b=lSJC1M0lBOvH2H9Sb72AUiUkRFPaH+wkp6cEICkVsfPdgWgH643h4QbMNFiysPSTrfEveFE3Ez4aaOYLPIbsDKFkKfuIyFDdqF7X4Hul4vkstDTeMMTnzyXmggLxmw4fUrHhsaGO1CcTx2zlr9DpQ9xu6M1HKEnvyBa41kt7Ktqv7vmi/VQWXgQoqB/X/v4m5HcxBbhXUB9ZylcLI8C1MbuKUdHC08W50gHvP5crM3QqGFWTHIq3fYnKtWDvTKxA3Cgin4yNL/lyeBGMhz5o7HamisOd1dIVM78VK4tBzk5ocPUZ9w/sig+859Cr88xL+nZLQnXVYA4tLX8NHXf00A== 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=GE3MEtYd/t6m9uX7tsCrsm/xazH/HurMYPLnGfjf41A=; b=BstLJmB5qBYfLuP5aQTUGTnLzwbl2c1DKu4G+Bu7rS6d1fcHEyUW5Bv5D2OMOrfcJqtmo5vk+5vTNkQwSYh1mDkM4b/ykwzmcBk4CACWgzK0TsxBQiIn2uoACTEscCWxSfRTK2YJXivhhqV83Rb2Iiyn+7OpzECIFhGuafelVYFy+Sa4WZhmunv2RchGr7YGUUcvQYIo3vy/tgBeYyqWDtZ+kK5dFcv2Ml+4k9Eattc1uFy1iCYiCLGPhi+7VDI+6pV6KWk8hZDcoPENjnDkzdAXTp9npv8ZH3HgI6A7c/aynj3EFb8OOXaOVBnuD5MuQ+GgJUWv69hgwFS190XoSg== 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 TY0PR06MB5283.apcprd06.prod.outlook.com (2603:1096:400:210::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.36; Sat, 18 Mar 2023 14:45:16 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869%9]) with mapi id 15.20.6178.036; Sat, 18 Mar 2023 14:45:16 +0000 From: Yangtao Li To: Eduardo Valentin , Keerthy , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui Cc: Yangtao Li , linux-pm@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 8/9] thermal/drivers/ti-soc: remove redundant msg in ti_thermal_expose_sensor() Date: Sat, 18 Mar 2023 22:44:11 +0800 Message-Id: <20230318144412.75046-8-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230318144412.75046-1-frank.li@vivo.com> References: <20230318144412.75046-1-frank.li@vivo.com> X-ClientProxiedBy: SI2PR02CA0032.apcprd02.prod.outlook.com (2603:1096:4:195::12) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TY0PR06MB5283:EE_ X-MS-Office365-Filtering-Correlation-Id: 4d6364b3-69d4-46e8-16fa-08db27bf632c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1BvdNsw6gt6DYeYjrdBU3QtxleLDOZJtls2m8i9BtdZoGolzwC3gtrcLZlCJ+LWEQOG6ibDIJT/RQVi0HEfh5SvfDGBE+q0vveMz7rm/d3aZrghXd+xXW90y+YlZhIpVSA0Vxuok5Voh+3Cd+Jwr3bLVnflM/BAQWcAN3k5XIEgM4jfzUSRDVxvqm0KYKCvZ+tPuulVnnL2h2RQYNWwH/b/UeKUatv2kdi+JubrB26/SyMdyS3etjzNHcMdcmS+WswWV0ZuYUuU9go6N3ODCr78Dde0G4xLQunrbKFQ7fn/QWi+2wEQIz3a06lXi7OIB8vidQ1mc5zH4HynYkOHb1NkPJdC1trHfK5pJYo0kH2kp/Cmf5gFctcg3TzD2Y9N16j2gwajNJ0Zl64Kp8wv+AXz/+6U4R4LYkYWECKjtCchmBbNQE7mItMplUvy5zQiEOqmCN8IoPQfWJblxRNCTPOD/HYhU17fDDrpd8ynU87VkD5DezAGUg5DEh5CHhdcfXISYtgpb+BajRtp84dzAwdbi9DSaVMcdUSk/c/liTp9Z8CDM2C5dnsYndy0Y5vzietQWrvnkTdSZfxYMtsXjg3Ax9EAAq/OVQho/3aIAlCM41ySmxxwR+1t2a9Fnk1oPYsGF/fpyVhINP0iJ4IJnuvfH/qqBqqcODJ0lO7k6hyExGJmIPXe52mn3hnMws/MPKyP5AIDDOEOO5iy6T/ntPw== 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:(13230025)(4636009)(39860400002)(376002)(366004)(346002)(136003)(396003)(451199018)(86362001)(36756003)(52116002)(316002)(66946007)(66556008)(66476007)(8676002)(4326008)(83380400001)(478600001)(110136005)(186003)(6512007)(6506007)(1076003)(26005)(2616005)(6486002)(6666004)(38100700002)(38350700002)(8936002)(41300700001)(4744005)(2906002)(5660300002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: X+e/OsTX4dDM+4MrTTTOyNlynD2MYhRnTYZXC62RGMWZNC6JpCGZBcAXnE5/MRATcrH1+csMcmAhZXUmgwuvtJtmAeAZ6kfoEZeGYryMNDewWbWWy/F58SG9Pj36WbKZN/5aP1iauhgGSMcIZIRX83hL4Jxir8k2zXb4K24sboHbcUcyDu5mRvHYyUbDABEWv0+xippTXk3opk7Rh94ZTNVjozkgEMoU/1zNu+389BX8nSWjJ89PLnuKIMhlYXwAU3W3906ht3vVcmDBxwtmTCn3ox/z3QsCKR8TgEWxLNDPXmxP3jnk84DDuD0DzbUDKdveQklDblzcrkB3954L6I1ijuodgdnBQNMPeknSA57ZZRVdF1OSCJkP97hePZFicpj0Jd7fIpFzgsxafQMsEuJKxnvW671ORqQXFYf6GhKkMFRFn7cYZ73+bcAtXKf1szRNsx20ioJDS2ree69WcbslvD52UTfah1kBLXZbR01CjusTdTTMkumlEOv8lkNMPa3/gmZgTFWZl7M1QzNemVhYSBK+LXbC4CVGTXlopYaA1vJTzhCKro6BTR+nUCrpCL6+C6qMu+gTiX4Fh9LB/WyzMGk17/nYWioVeuUAHGTz1sPSWbOFLuSVPMjuuNhb2JDy5cimFZCTaQtEJ/217656YfE+YBJIJq5BpJb2OgHaWworiEe4mslguuWt9oEXG/GRgNC1S4avdo9wE8bp1ie3rOAjD3zfEgoMApmn4kLN48U7WwXVtepNZdYov6eBEPvnAfkKiKLsVbWP6xFXjjY6o1+WtDp/QK6Plx3HMwSdy6AuDeZUGnN5hZL/r2KzB0bVhR9vh4jWoOs9CDVPtRQdz2VNjHeB+CQD4aYMtyf0VZl3hfHSdqhlUud9aBsB/HS18NETioCFM9u2Jd5BJykBC79Zf9KUtZkcV4gbhdA5IWFoZDpnE+B6kSR3qkoDHXowRW59alpr+TUouWCWX5sfcKRBamnX0o8s4OP2xyjcsbRbM20p8i7UQyI0j9LGrt/0bkbnpHn6CiQ9oUBnsyj469ITjItMGu0p4L5/V8CBI40wyICniFmcVgipQ5LDzAJFuBgP81xzK+vjEZBXr/dg6WlJ9lToiIGdCAFPEeQoRkFeS0h8VEcrYrJgiyv4RRut352S9mpBfKl8lA/EMlUEE2c1LwtGNGfwyhZZBhFPOgQt0nMLivGqOchdUOPIZ94dbxjUHhiwc7z4+xX3eNn3qILONPm/DDB2c1rg2B7fnMdWWxdY02uIAHAh0JMqy+qyhHjHrd+QozAJGRQxtXBOw0zpTnaDLPQXcRc03mnP5HATqGS1QL8LxHUPA6ch3/R1ngA+J50Ot4hqotFFE2GnqKJMiFZGn8EssB0oipEvnTBbYH7FKINNzlBHZQuoDiGjiYEE09PQYoiUrK6PPnJ66iaY8OA63hvBfCnTVYgymR4hESdvpB7Ha0f2dGYWZW5rUGEHVEmAWvfumvOpAArs7V7q6nWR183hEed7ZoPtNaBWAIId9GAUzaIp1BdRK0brsP3qcDoHavlqiTa2hGDS07rnYylvgY9Q7SvZGaL7z6I6bMKhHYI8MaHVtjjG X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4d6364b3-69d4-46e8-16fa-08db27bf632c X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2023 14:45:16.1314 (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: UwANLDm7LTWDQCiym2Jkf7Iy/bWdzdxntgJ1n9sTHLlbpH9P2eDsVL30HZeSBC5wcGXBEqYwrNh24KC2cymBJw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5283 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,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?1760719301220437562?= X-GMAIL-MSGID: =?utf-8?q?1760719301220437562?= 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 0c8914017c18..e39091f999d9 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_set_sensor_data(bgp, id, data); ti_bandgap_write_update_interval(bgp, data->sensor_id, interval); - 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 Sat Mar 18 14:44:12 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: 71622 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp328414wrt; Sat, 18 Mar 2023 08:05:05 -0700 (PDT) X-Google-Smtp-Source: AK7set/n+2fysq/LqD2ctBI0rMWgrPgZhoN9J48eX8r20O6k8u8Ac34/yMm/d3oIezs4sXgZYj3H X-Received: by 2002:a17:90b:4b10:b0:237:373e:9dfa with SMTP id lx16-20020a17090b4b1000b00237373e9dfamr12078759pjb.20.1679151905077; Sat, 18 Mar 2023 08:05:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679151905; cv=pass; d=google.com; s=arc-20160816; b=0zHHnlUUCY1xp6GlZbjoygAY8TcWoUxN4m8KQbgiq4+KZIopSQ9Ibz4EfCfnzm8gsv AP3xYqyjtmQULIHmds272Nkm5RTtem3Z0YC7PxM2IxbnFck50UscsemPmiocU+ScDzEf WsvdJvcoTKf8HtlyZnE6Io2JLker/olez9PW3vY4VP7saTBy+gw46EPr/4R4/XBrQ81F Nb0uSqy0lvsfjyDOVrrqQ6Bq6lKKuvbf1L6xJo3qTxh0F5FUFSGf/DyM5OLiisr31KR+ LLujfnTLZdofReDW7FP2v9TGkYC8y0tgOm+lIwUuEtyM0+y+mlOWKWQSP4FknrmUer3M XFBA== 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=5nIv0m6aN9A37vO7X82/QveyknUc3Kl6UAetm1E2t00=; b=mF92TcVWGJQNLRfNM661BRRMbwTadbQ9dOvmeSKeR96t77UKGUJZ3c/MR9Fi3lp4Xy JNtDNJ2ikBe9hgApG6A54RLgV7fQ1UefDkmPi1JPV8GGHuBqS7xfTcCLWfQp0CO3y64h pRHTGP9WVG/x4GgN26vFpH8c+iAqf4Qn9wcDBRyRTcRO729DSoFTcCOdgsKjzKBNESc7 wICZCN+GyARy6msW+tgwbF00+pVrC2rUh25eldVw9zkIgBBaL9b7fzXLn+q9F4AbdSjq FNiprz1T2IKSYiT8f8tcwUfj182eGwxk8xprEdo1Vyy/WGGe7r5JmTgiIrpkWk/H/KKT ++1Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="Rpsq/56e"; 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 kk4-20020a17090b4a0400b002342e691837si11812874pjb.21.2023.03.18.08.04.41; Sat, 18 Mar 2023 08:05:05 -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="Rpsq/56e"; 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 S229971AbjCROrA (ORCPT + 99 others); Sat, 18 Mar 2023 10:47:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229945AbjCROq6 (ORCPT ); Sat, 18 Mar 2023 10:46:58 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2093.outbound.protection.outlook.com [40.107.117.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24F59C144; Sat, 18 Mar 2023 07:46:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CWdsqJeYpHbr6iF4jtswJ4RcKNMRuJSjYpOebP6ipjGtkOx3Tx1UmUq/GIvnK8frjBcik08BxvjOFumOZY6/QQg4JBz0sNAthoZzCqL+jHYDTOweLqw0djnidnM5jSaM6/OUrv7b3VZVDtULtez9dVLvBMzWQokbKDnYwGN403b1Qx3ZrMKqg3bUqBmUwQkL1On346E+06uHXo2zPceZiEurDX8zfsxWQqdLBkyJ3HcIkOVhCTU+rzWzOB0wHMZCQF5B2HHhB+XcS/RnpvUTBrg1NnoNz3qHQJIECujbb1JIxYQfpzdTWgjXbfu8Z8/2ZFj5PvxXwjghUidIUZg53w== 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=5nIv0m6aN9A37vO7X82/QveyknUc3Kl6UAetm1E2t00=; b=kKB00cQHRT9H/E9ozi+8qt1e2AaLkZLj/sYa9i+poeJbc52VWrPkOBzOG88Dn9tuyYciZkZHzCB6k9+0crTzOBbgCgKYT7xWSbSQxHjXZ35f2l8y9+lmTVSFmnfK+GNzAZtE2vlUfzuwjTA592olttWVxKa2wYD6ROsOPfgD2R6tYINACmtHJoA55iLoXMQyaxQm3QKmJEfxbt8wgEUqF0veZxpRtt/a6MURz6SVfjovm/BVdcOnVIDgJMjG1J2TgattitwruMtlrJzs/k9SHldBEOjjDmQeYWt5ReGtS7MBd6zRWkcBYLHKeS+8yKTNje0kUntfcUnf/3rvgQkC6w== 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=5nIv0m6aN9A37vO7X82/QveyknUc3Kl6UAetm1E2t00=; b=Rpsq/56eYGVVqQsGLV17yrogyAS1tKTyuxX4h9pkEUkWhFSAjKIQI3rHHgpoGgTt34vLx+ElYdN2LOmqiuF2+2zhm8sT+b263MvK+IXVRjwCrJecunRzbZZp5j2Nwai6Jukbq1PSbkr8HdmjDe92b3XV0W48zRVn6iKrk3gIFeg+xOr2nm9JlAa9v2u9ZlhEqX06DBYz1mZgzk8L6HTCuXHHGf6m8r5H89wi4r/zN1Zsv71sskVXADyXS51g/VaAyC+KIGLwyGmWlFZRTfpELQZWwbET2qofp7ozzA/XnrpQZSkRuI1StmAIf8i7c3Xw4kObb5yDFa6+ePf9h4AV9w== 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 TY0PR06MB5283.apcprd06.prod.outlook.com (2603:1096:400:210::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.36; Sat, 18 Mar 2023 14:45:19 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869%9]) with mapi id 15.20.6178.036; Sat, 18 Mar 2023 14:45:19 +0000 From: Yangtao Li To: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , Konrad Dybcio , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui Cc: Yangtao Li , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 9/9] thermal/drivers/qcom: remove redundant msg Date: Sat, 18 Mar 2023 22:44:12 +0800 Message-Id: <20230318144412.75046-9-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230318144412.75046-1-frank.li@vivo.com> References: <20230318144412.75046-1-frank.li@vivo.com> X-ClientProxiedBy: SI2PR02CA0032.apcprd02.prod.outlook.com (2603:1096:4:195::12) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TY0PR06MB5283:EE_ X-MS-Office365-Filtering-Correlation-Id: fbf9b63d-707e-4ad4-fa8f-08db27bf6546 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: c3UDln+th3ckpOA6mz7mgl0d7T7UcoLMrwKKqNiz7CZLfQxgQSqDrxtDnKSTY4KOywuTArS85gGDS6s0ciEq1FESGIIBgatByetyFOACG5s+9ef6y70occ35RpiIAaQvMKOntCdibzhc7GrjDbBbav+oLsuVKWvwUSSmY+SrsvbA75k7df3jsmBpxU2fKB5c1MxFootH8I/E6DLdI519ALFNWUOoWpsTcXL+b3NACiX2f2eSJI+seHC+Fl8Su9Au879dAdk3Pno67RmdAJxE3LDHmqHvuv7TFiq3NbDiebBLtfRSi+nOEQBr34CQp3KeOrG4S7xwg+VPq9vw9ty/bkoB5KQofZ6zQi+RT5Rjebch7407OcSoJqdNk04lBJHlneNXCZS22RnfRdJX0sIGpjXXKzHax+83DKGGBDwjxxsIAy+4/O7HE324N/7WBxpQmCayd9aaCbb4eD+QbieClJJHmgtMbRKrwxZiWg4sfobfpDBWScoRxgNTpnLy99NsEq4++rU8c4C12xeL7W5SiL0pc+4yWlpo+7nz1ZJUCRYcRU7SDoEpNxJa/25+J95QlijvMs5Z4/6S+5bQbVclLRJH/2zr3yyUBVVXSgvQR8VztlcBJ2pRQaORPzFqz0ZTUBNBhO6NRWfsiHibtXsDOs6dxpagpu2FltuiSqvJqwGenxa7f48+tcjMN7scgL6jn5eMjksVXrw5LoFZAtKFsA== 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:(13230025)(4636009)(39860400002)(376002)(366004)(346002)(136003)(396003)(451199018)(86362001)(36756003)(52116002)(316002)(66946007)(66556008)(66476007)(8676002)(4326008)(83380400001)(478600001)(110136005)(186003)(6512007)(6506007)(1076003)(26005)(2616005)(6486002)(6666004)(38100700002)(38350700002)(8936002)(41300700001)(2906002)(5660300002)(7416002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: W+NwwH8ekpB6ioEa9aZX+XzzjFFt/HjaraFKbxWHORcRYUE7SArOewx172mY1HiLGAmcgysI785O5Ft+z3fJvGYiG0MI9T+f5/V2Tfcd7YdIYRsdrpK30P1FU0vQWX8YsI/Fvrb2P0hL9PFBSGRWbJrkl3HRDFi0zXKM1VoflXZOYv32qbIxh8QT/ined9Z4eJkUlcAWmO2sMIc0SuNzoXgPcEylsGWVumDfyvXAYTtC9UQXxjtm3cfsZHHU0I3pBps3T9/TKieQLEDpLPevq8YgrmqdEZVk0Wg3UdfJYgrkAHHlPOmfLPiRilQQE3+XydRdQAMscnHDDuSBO1cWHMjV5kn3/yI+9u/+m195zpHqcxOA2N4VvQVHQS2XaIuYHr1uz8ysW/qQp5LUeqz22Vn5BlSnEYxt/POGDa6LE+UvbXQAddpyh9sb+O0COpg8l/KLi0tCM2DY2xo6rMQFm6zKpztdTZM3+1irfvlzbBhqtih81i2dtHl1u5wx0EMErDE6HXl+KM1v+dCGGuLgbjdxgIr7sPz7WP9Wful00LRVp1rFB57TAuFWy83rRXhIpjOOZ8kbnc9uW5Z5X4rYtGJ85PJ9tHgpvotKhOcg0T72Cf3+9k8Qwxw5QX3kqRTBrltRvQYUjoe782a32F0D2FG74eXDqWM+8cEnw3TvDxwKZZ3VVkCy6+YGaYyX0kCBow59XTjBTFb6Ti2d9HnB2Fe9vw/QWR9bSgMdzRy9hEk0PvuHzlhUU0lADgcxPieOhM1nhQYwgmQGDyhpO84XKQqzwyJOIaMk1T1vfvM41Fn692vwc168gwuIaYGKrI883kkZC+BFjqPOpHYhfMxaXctpejAHEMg/6tcjXMjtQBpu8QJYXHxfmb+Rgtd4v4ENoHNjFPQRlFI8POhpUAcRdWqO6Lke+5i6S6yvL8lsdR//EE8tkty3d4jK5BeOe3vBv+Wocm3jtp+Z4UIlsgBqNNmPu3vmkp6mPnG5MpkI+eyASo61CXT3/ueTB/A7gORo3T3Rr/slJu2A0dsx8/9LYyvKZfukA7JuTY5o6Yusy6ZYrlZUxJcxkIyyjEb8+uGDj8AYK49fMk3kwFNrvInMVVPTSDJVZ2Zl16B2ClkD+QWxK2zW6UettVkxFIQkVo5y7tKzukb0Ir/C05G1nIkI1iYKmJXU6rvQKSKgNVTNykuHy+CSwMUtQkF6jc4F7uSqeLnumU9Km/tTnzp2OSaVPbCaDlbXOYRhrfXXpOok0QG84asasrISmuz7UGC0x5socgP7pUERDBE9oA8UgIk0MMNI1CU9BURaVKsb3kRzCi3Ii0m7ZAqQLelVJI3Y2pFUs20po9AP72y4UhiEOMeWRpxiXGPiHuaTmZHat4Qs8T4+hH8xmGRUY+CVN6pgYeknJCmYYgKfUW7MRtxLQsyVp84Sr699d+0+4tPhEDlemRO4wizocIR4LjOE4AtF6xFoXtuEkcTWGNzxqG1tNUNnqeHCVXJ9EwtBZy8SydGOPowaURuj8uKsqw3j7D0iPLA7gTJK7af7FX5Ii4TYIeC302j7773Vjb0kWvxmFyc+6UTBfECkDc/LeOpkh6Ccnseu X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: fbf9b63d-707e-4ad4-fa8f-08db27bf6546 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2023 14:45:19.5694 (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: lJffMyIrAL1HdutmE5dYT1W5VNCMEw0ryki/gMgt2ncHFcPZ7eBcHUP7OIoiZcSxl747FPpZfAgIfuk09CJv2A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5283 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,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?1760718387760111488?= X-GMAIL-MSGID: =?utf-8?q?1760718387760111488?= The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- 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