From nobody Thu Dec 18 22:16:40 2025 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 BAB84C83F18 for ; Sun, 27 Aug 2023 09:39:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231149AbjH0JjN (ORCPT ); Sun, 27 Aug 2023 05:39:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230379AbjH0Jig (ORCPT ); Sun, 27 Aug 2023 05:38:36 -0400 Received: from smtp.smtpout.orange.fr (smtp-16.smtpout.orange.fr [80.12.242.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 597DFFA for ; Sun, 27 Aug 2023 02:38:34 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id aCDYqs7H09KIfaCE4q3nb5; Sun, 27 Aug 2023 11:38:33 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1693129113; bh=+P4qXG0DNFgTzSGfPFxL6rolcGOhTs7nFhwTKxuBpPo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=e6GGeHkclzkSFZH7b6d6bA40oWV879quuR7gMm0OtFDdxiowVxHxfUZX1s7d07Leb DEJp+gg/Gpf25duCNb11870Z4mHvaKw6tJf2E4LebCkZ3RIR7kJ58aY9RpoRDflVH1 QGnGlABHepua5oBa8YUlSsaoOKaW/tzFUAOT92VPQdlKZodOlrU64tNjzBz/9iLjaK T13d+u6IKBC0Jb7QSga2ltLIpcytHTAG/hW1V7c6vCRq1NCe76ymUimiCdjXSDJQBf YTi2VzcGJWyP6uA68pxqmY4h9el5F8EW/Y/UUp9947zjRxrIgrVlGpx4a6+sYIVIoV OAKxmTCEWmzkA== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 27 Aug 2023 11:38:33 +0200 X-ME-IP: 86.243.2.178 From: Christophe JAILLET To: abelvesa@kernel.org, peng.fan@nxp.com, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, shengjiu.wang@nxp.com Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH 5/5] clk: imx: imx8: Simplify clk_imx_acm_detach_pm_domains() Date: Sun, 27 Aug 2023 11:37:56 +0200 Message-Id: <9046676220e3f5362d3aa638cb5cd4ffcbae797d.1693126687.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The return value of clk_imx_acm_detach_pm_domains() never used. Simplify the code and turn it into a void function. Signed-off-by: Christophe JAILLET --- drivers/clk/imx/clk-imx8-acm.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/clk/imx/clk-imx8-acm.c b/drivers/clk/imx/clk-imx8-acm.c index 33157bc706ae..2c920091d678 100644 --- a/drivers/clk/imx/clk-imx8-acm.c +++ b/drivers/clk/imx/clk-imx8-acm.c @@ -310,20 +310,18 @@ static int clk_imx_acm_attach_pm_domains(struct devic= e *dev, * @dev: deivice pointer * @dev_pm: multi power domain for device */ -static int clk_imx_acm_detach_pm_domains(struct device *dev, - struct clk_imx_acm_pm_domains *dev_pm) +static void clk_imx_acm_detach_pm_domains(struct device *dev, + struct clk_imx_acm_pm_domains *dev_pm) { int i; =20 if (dev_pm->num_domains <=3D 1) - return 0; + return; =20 for (i =3D 0; i < dev_pm->num_domains; i++) { device_link_del(dev_pm->pd_dev_link[i]); dev_pm_domain_detach(dev_pm->pd_dev[i], false); } - - return 0; } =20 static int imx8_acm_clk_probe(struct platform_device *pdev) --=20 2.34.1