From patchwork Tue Jun 27 10:12:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13294283 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1431BEB64D9 for ; Tue, 27 Jun 2023 10:14:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hwtgdecPUjxz7VCKLV4HwXaTNalzAak3uH3csDtVues=; b=LdiQCTuQ9hqwC3 M/l6FMuU1CmmkyVwv4VV9InzKRpc7SRGfDiLue7YmijoTZGloqdMGbpNofdhef0VPawRu+25QYdUD m++FC7xwrjlbh1oYiK/Xn3csVu/UKPMZaCMNTzLIs/Y4hUE4/0JAjznVIikBTeX5V4HbwPiV5thUL /zy790bflzZuK+bzJa2/QbJlSGoRhwU1PfzXTMp++Khs2AtUL7Hn2JjDA9t6xG0VV7N41MG99CA3V jsz+zlFRrUxKTB0FNYt+N1E2HmiVkoNGobEVDaxGU+D3zT4GWXZf+AttihZ+i8NfXD3ER2KccJ2RB VG+3aw63srBnmiAzMmnw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qE5ih-00CnQp-00; Tue, 27 Jun 2023 10:14:47 +0000 Received: from mail-sgaapc01on20715.outbound.protection.outlook.com ([2a01:111:f400:feab::715] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qE5ho-00CmlJ-0r; Tue, 27 Jun 2023 10:13:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iN3QBSGVgwI98dz/MAgIAdHSns2oRrft7O0Mwmyaq07/JNiOZlmIKWqHgd+oEoUWZFUm9mwsrkha/1suRGmIZDbI9Kq5eO+pyUCgWQkXMRSbjA4zbFxVRGGtPupn9NsJdctm3ud6ujDI2k1Vphjb4nu5ZHwpZnrEKJcEu+RkY5FGDR+Qf6kV/jSODQ1uVNjbDctrwfLd+UCMZnw8JREZSBRJdmoMU54M9jvmznTBj6tUoZ/7hD2LicUIE+sF8yaGnUyynDnsV8k42/vEGjgBOMeihWobjsUYbfHw9nnlb0g9h9BWNEwMq45yU9q+g6VbJD/0neZ6wsM1X9wi0s9LSA== 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=EicJ6c/zmRq4kaTk5EYESeIEW3wL25/O6LgVLRrMKps=; b=YiTqKYBv/vJLx5QjB3yYoGRr4WaW022plGPlZJN3sbtIYm/deghpwkWSeAyFcKVX9uYPtWQUJxQrkTdoFZ3lvo3Ysiq58YgYXrV3S42TOsJjhASppryAXamMN285SUjGZhIOeWMiNGh8mx1iyXkWOnytsuFXBJYhJfe929dOMANVrMwMxeid3yhWq9ABlVIIRbrYhnUTDBTL8EtJdr0x0y6DdHX9EClraHm0e2crPQ+fIQTkmG4BNi3NkOiV7tYx0MXUN1vn8xW0B5fMx9RxKbsz1OGMPy3Z77JvFc2eEYNpEZcVq91m5MJnn8CxE1jxtKCpQPgBOpiQzCPtnjG/EA== 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=EicJ6c/zmRq4kaTk5EYESeIEW3wL25/O6LgVLRrMKps=; b=OIYXztebsqXZOXTVIzc4bRiMFenxn3zvxHSwIcuE4IlY4AWDY4d8psip906/P7/yryMJMadJTUznomKCVoS84uPZ/iulB1ATXLalNVbLcbZjPZ1gfEyKAJ6D4gqvcwxaALZ52uxAlg3KuwOG/oVQKpmFPUlW0NZA1OLvTJatSLvbtrUXuQ/6RWXJ/WhCP2l4D9zOic6RXzWyehMP0a8WIcn4Tgf7fgoHLeBTmLtAm2MwMAEIoDzL5gfsBry3Ez/V510/K21ecxC0X6B3mC7ySPUvj2cCCpOtjQcmrnk4KjFChrUhSzZa92CzKXwkGl6XrSnvP80ZQv1DLYv11qIVRw== 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 SEYPR06MB6661.apcprd06.prod.outlook.com (2603:1096:101:168::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.35; Tue, 27 Jun 2023 10:13:41 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6521.023; Tue, 27 Jun 2023 10:13:41 +0000 From: Yangtao Li To: miquel.raynal@bootlin.com, rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, mmayer@broadcom.com, bcm-kernel-feedback-list@broadcom.com, florian.fainelli@broadcom.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, thara.gopinath@gmail.com, heiko@sntech.de, mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com, thierry.reding@gmail.com, jonathanh@nvidia.com, tglx@linutronix.de, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, srinivas.pandruvada@linux.intel.com, DLG-Adam.Ward.opensource@dm.renesas.com, frank.li@vivo.com, shangxiaojing@huawei.com, bchihi@baylibre.com, wenst@chromium.org, u.kleine-koenig@pengutronix.de, hayashi.kunihiko@socionext.com, niklas.soderlund+renesas@ragnatech.se, chi.minghao@zte.com.cn, johan+linaro@kernel.org, jernej.skrabec@gmail.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 12/15] thermal/drivers/stm: remove redundant msg Date: Tue, 27 Jun 2023 18:12:12 +0800 Message-Id: <20230627101215.58798-12-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230627101215.58798-1-frank.li@vivo.com> References: <20230627101215.58798-1-frank.li@vivo.com> X-ClientProxiedBy: SI1PR02CA0012.apcprd02.prod.outlook.com (2603:1096:4:1f7::8) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB6661:EE_ X-MS-Office365-Filtering-Correlation-Id: c8dd42b2-ee02-42c2-8ae4-08db76f72e96 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: e+qmPu/uRGHCsuG3cpRd7dKM4Mb2Ty7CrHI+CQSxYqP3tB+c4jTYB3E3y/9FxuCBWlebnt3Shmn0dIV5UikAFnEVUcpc9P8laOMYaZ0/+53UTX88H5YTOGugG6Z1EOT2BWuo9KOFf5g7/eGOJ9Tl2KODSS9wJa6C8FoiXRkajX6nvGE5EADCxnIdmzGEazpYJOTWMSell9MtvUR666RsbAAT22K9nxOCWNby8RUlOQyrZIzLuKo7zXk2kJtbPc+Gtuuoy6eMGU9UK6oXf/9nbvA1vilyvfJG0dINUVgl3r7SH0dizJKYaTuo/ZSJWdnn/Qef8tmQ1k6KDizaySENJi5pQmUwrqVf8gGlH0HNe8NYVOCBn6cxcP08Mt2cy/2vTDS0tVKKL/rcwxrEF8qUvedHjlyh/0P3CLvIRj40AFsOR2DaHxlUfaXVaRumtciJT+QFYE9t79OkR8jju1ar2VbH3TiSH3+LRROJB70B8rlDGall9UBuzCagTBOysLFTY8qXR5CI3gRczsraD5qhx8YdOso5VexeTMzRFbBXesCr6duH/qdkcl+VyrSQl8XT/aI8vYGCIOUwGny0uvNtx2zY2iprVRtO1ylriNM/BH+fc+/CJkEE/ld3kEWPYV25OQfRzpOsC7/RtEBITICcHQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(396003)(39860400002)(376002)(366004)(136003)(451199021)(7416002)(7406005)(5660300002)(66946007)(66556008)(4326008)(66476007)(478600001)(36756003)(316002)(8676002)(8936002)(2906002)(86362001)(41300700001)(6486002)(52116002)(186003)(38350700002)(6506007)(6512007)(1076003)(26005)(6666004)(921005)(38100700002)(2616005)(83380400001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-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GFlKRJOv5XpOYQe+BVnOYwXl8YeP4yDBldSIX14I1Gn+FEmfBiByHLtjAjrrtkmhmVkuUz/GBTgsvW1hG3gQBUxfrYCO19B1FltWHiB16f/+ueVS9lvwuQsMvyfoMgvldCZmK4y5P3AGkF+V7565BKk2DOuabQ5jLwyd6Nq/YRj7C6HQzfcN88wOwC5ISKDH27iYqQ9zNSQFUJG23u/1/6rpo5YjhZte3nHhHhSyV9i64lU2v/gWWN+J/tUT+0nvtR5JQl0mKYqnL3WpUcF3KKujfT32AP0mUmkbSVsam7g0pA/8jo+lw0PVOcd2wjIvGBcjIrFtP9tA5ejqfbYtKYTNPwvHkYv2v+Cvx+nXbRJHSnDHRm9S21x64CeN1Stkf18kZgKlRJdDlZMivUwH2o92WJ735ItiNZfnQyC1zNPdpLT0gtD5AFj3m56Xa4n7ENGQ1ktyUCBTqjuMf4k7uvsis8rewTr+x3Us3WGjDsJrOORzrI/cqh9JLzkEn0WwNRhhYI7oTLJGgBb72qNmdxRIYPmC/R2SmdD+b3jdFRS/QgHO X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: c8dd42b2-ee02-42c2-8ae4-08db76f72e96 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2023 10:13:41.5174 (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: npDvD4ya2XVH3JC6V59bxzf2rIzVZcDBd+RfHVMlW6QWUjujEhdEfMR4S63P7y03quG0VdZp+uVexbwVdLwqxQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB6661 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230627_031352_310978_84AA4984 X-CRM114-Status: UNSURE ( 7.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org The upper devm_request_threaded_irq() function prints directly error message. Signed-off-by: Yangtao Li --- drivers/thermal/st/st_thermal_memmap.c | 4 +--- drivers/thermal/st/stm_thermal.c | 5 +---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/thermal/st/st_thermal_memmap.c b/drivers/thermal/st/st_thermal_memmap.c index e8cfa83b724a..dd52e1b9d925 100644 --- a/drivers/thermal/st/st_thermal_memmap.c +++ b/drivers/thermal/st/st_thermal_memmap.c @@ -101,10 +101,8 @@ static int st_mmap_register_enable_irq(struct st_thermal_sensor *sensor) NULL, st_mmap_thermal_trip_handler, IRQF_TRIGGER_RISING | IRQF_ONESHOT, dev->driver->name, sensor); - if (ret) { - dev_err(dev, "failed to register IRQ %d\n", sensor->irq); + if (ret) return ret; - } return st_mmap_enable_irq(sensor); } diff --git a/drivers/thermal/st/stm_thermal.c b/drivers/thermal/st/stm_thermal.c index 903fcf1763f1..d72e866c0ab9 100644 --- a/drivers/thermal/st/stm_thermal.c +++ b/drivers/thermal/st/stm_thermal.c @@ -392,11 +392,8 @@ static int stm_register_irq(struct stm_thermal_sensor *sensor) stm_thermal_irq_handler, IRQF_ONESHOT, dev->driver->name, sensor); - if (ret) { - dev_err(dev, "%s: Failed to register IRQ %d\n", __func__, - sensor->irq); + if (ret) return ret; - } dev_dbg(dev, "%s: thermal IRQ registered", __func__);