From patchwork Tue Jun 27 10:12:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13294295 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57007C0015E for ; Tue, 27 Jun 2023 10:15:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229957AbjF0KPG (ORCPT ); Tue, 27 Jun 2023 06:15:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231696AbjF0KOc (ORCPT ); Tue, 27 Jun 2023 06:14:32 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2118.outbound.protection.outlook.com [40.107.215.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BE3F30F1; Tue, 27 Jun 2023 03:13:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VpKGrcP2zbcIFZ8uxKL0HLOM78FdvY98NeeVF1k+YrkokBMcCiAnnVqjhvufM/6bAZUvyFm1wube+thMBn5bd+z5QV+N8fbI0gk17tuM79dZgx82kQraakm3wX6quXbJooRZHDDSkPL/TFN2407nxqxsRisWByLcGOCTvNm8NrEZVSZqfncoDGKszK7SOQIi1igeD9D+5LjPgvshJJvMfkXBwOM/pbNr6pm9QCmFiqraS5dq10oi7UeOU/fWev145AK8BVjL+wVEG2aq49j/SIJ4vv5bGyNai9FDI94VQ7Cm50ezpKHhXBs+C6TIC7QBFT19YDMOaSFNTATv/whPdQ== 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=A/rlOfquaMXUGdUWEb/wXMP10jxf1Axfdy34B3mLYfg=; b=SgkM7TPJd6g768l4lKP+hh1TGPfnbC1/q4xFGQl66ZRByoUsAnxhDlWIW4p+cr8OwrHJRdv7hTKWNZp5UjG19GE4RoDCf9jn++1K5uOwi24quf0pHWoLdcu4AG4FJ7yeWA26pQbPWmEie1TAqmy2eSwUdDNE+lYJNHoap0aFXtsAswqTCrgC+cwjBSpHT4+I5Tl247soGJYDovZ32sGGneesWGs23O6KkMBYcNndQHhZ4+0DS9ucIjUCgMWutZEDAJ8LrTtu25pLLoYVzbLS5rVcmj/S+906dnLgs4UAgJacoJc/Cvr2+guqdqFQHJ/UwmpvRQM+UIGeHU8Pe4VahQ== 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=A/rlOfquaMXUGdUWEb/wXMP10jxf1Axfdy34B3mLYfg=; b=Vs6G303aiOz3gasmAypJ7+xADoK0FvB5mFxU2YnFXZ9qMh57u4H37BsYwXpnBI4yaueD67cE6f5piiYjV746Q8yvPKWkotJDFBoGZMDMPzS1D9/560TMnGoLDsogmnxIMlWaZZ3NB2rZlD/lJVhw99GKt0sfMBgCnRqTLqM91FTYo3+6Pwv+Eo6SzqYh0VHpffv3ABT8n6xjIbAnmksXtgQFESxdsCAiCB1TpCUcHfqqJmGpkp2Jrrb99QPS9DppeC+27fB4DXaLygT4Ow5g12gIecsT1VzqQLS1yGuUv9ZSFiXoRaTp4CjS98Gl6GvCOH5yQDgIz3pOeUPdJN+l+g== 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:22 +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:22 +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 09/15] thermal/drivers/maxim: remove redundant msg Date: Tue, 27 Jun 2023 18:12:09 +0800 Message-Id: <20230627101215.58798-9-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: e8f64403-7b3b-4767-0e82-08db76f7236a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +mM7JcDQXqn9QFU6mH6VNOol6qwQFfPYbo1CD7ZR8X/eqwIsdL5L2vPo8PKRqZ7VYHtsnZ1uTRg6j30QYH+fJ9krYhOH7+qZWgsYnYxd0pntKJpSu1fXP33r1VsLBnL87eUW5RTp5BP81Wa90NTLi3qVs1S2cSn9l8Bpq0wqERj73jrULCdqohO2yOi4kxqz4Iq5J8ZQbn7NC0dS28JmmHbMn02ga+TtXcs8f6/8X6CtxZAYc7qXcTJp4mwLjeeb5VzEvkqnyP0t/MC0q4/8UTER3zJyYVdKVhTDgZ0/doxahmu3WoWyCLsxan56ami2BjYKWK7Cev8Zb1sBhyo5s7kZR7kJyH5mhV9ebajfA0Vyt1G3y08fDhMrILUK9AU15qN+9IIkoN47T3UuuaiXTRRl3jLqeDdQ0XLPKMCMFwFTd6cBzNSCxskC66ihuCg2zqXHob5ddLZGmfmnLwvr+7Mua1lGYFi6vuhe8qqE0xiW4XQLU9Zc5JRUYRrGFmkY2ipVw+bim5k6Q9nVvP5Oi/4+jdK4bRCwDLb4dk0zCsFZcRIoLbaLromNv94bZV655ew6oIqu1Ws8zZjVvipJrWGdC3WUU8ULOLL3bYhcWP7DG8r1+nZsMFntO4yp/94JDhqwpkLZziQ474sr2ucLIw== 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-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 2b0/RxNi0stYjOlqFnzWHPnG7A8UnF/uigoQCEXI0IqRie8Oczg8AdWR6f5zfNVxjjpTkMivNa/OHusPP5VhPjH59quSUwRHutN4wJ0eReT0m6ep6TfP4j3tgnHph2vXP7FjGQN+jrlotAG26kyoBvFenpK9XXKskOGFCAsyEJcxqVX6VDjEmGJW3oYk/9tNyuGD+NbsbPfQ+7gjzHlQh95PlYmNjn8WZkoG2rfHxOCvqEY6iI6XLugjhaIQodqrsdq1R3lF3N3QCAsUTEgTboRnhy3XKnK/vpsQ6GctU+++qXnxNUhJsIGPDRAfK7RRWcF3jev44fnXSB2N6ssq/26HN38UKC2byQgb+nrYg59CqRU753pDaVdARiEMZTuBrWLb3eX04dJ6j95p9GMjn0/EUaoPRv4E3QtulJtRgOVVlNfTy8+e+8ZDspWtFr95JyJ7ZgsKQq/KCGVEYhzN+Vyw0Xhkx+wHdqXxHe6KXTA7LR9sVQBZ2LVVyG4/VyDQU6mBPwe6NZ11LQo7M8fKU7ygKXoJv9xnvNf3sYgWYBI0zyzHNeKFaVp5aPxNimoHtq9fy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-4767-0e82-08db76f7236a 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:22.8007 (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: Z+EDbV3y4YhZyahMEIWeyqXu6U/D+vZj60hwW4NZpiJExFeglzTLAfOp+I9F+MhT/grjSp8U70xqvC9uUrrG8w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB6661 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The upper devm_request_threaded_irq() function prints directly error message. Signed-off-by: Yangtao Li --- drivers/thermal/max77620_thermal.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/thermal/max77620_thermal.c b/drivers/thermal/max77620_thermal.c index 61c7622d9945..73c251caa62d 100644 --- a/drivers/thermal/max77620_thermal.c +++ b/drivers/thermal/max77620_thermal.c @@ -125,19 +125,15 @@ static int max77620_thermal_probe(struct platform_device *pdev) max77620_thermal_irq, IRQF_ONESHOT | IRQF_SHARED, dev_name(&pdev->dev), mtherm); - if (ret < 0) { - dev_err(&pdev->dev, "Failed to request irq1: %d\n", ret); + if (ret < 0) return ret; - } ret = devm_request_threaded_irq(&pdev->dev, mtherm->irq_tjalarm2, NULL, max77620_thermal_irq, IRQF_ONESHOT | IRQF_SHARED, dev_name(&pdev->dev), mtherm); - if (ret < 0) { - dev_err(&pdev->dev, "Failed to request irq2: %d\n", ret); + if (ret < 0) return ret; - } platform_set_drvdata(pdev, mtherm);