From patchwork Thu Sep 14 20:31:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 140147 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp821041vqi; Thu, 14 Sep 2023 22:30:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGUlhAcTrMVbdgE8/K1xK3EDcO9RyBZSUqh25aM1LijlVLW/uUB09xD56rgQn4tHJD6pHcW X-Received: by 2002:a05:6a00:1acd:b0:68f:d35d:217e with SMTP id f13-20020a056a001acd00b0068fd35d217emr767300pfv.2.1694755845428; Thu, 14 Sep 2023 22:30:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694755845; cv=none; d=google.com; s=arc-20160816; b=FEaEw/Gk3IVwHzLDbUpBS+cermVAXCp94LJuBvEffg2m/AkR29fH/79c4P9HpPi+fT yHb71n5o6Z/fk3RP7EWTnAkfurYtUpuE0V+dhZuY/lR0rV4Jw8BSm/r4tmXlfnJCukkt /0sK8/w6roArjLAD1OqArp9Isn4f/YWubnHO8DC/e3XRpvyiObdbDOfYQr1AkZGhaPhW 9yz/NnYsotwLXXc6xOIT5HPtleHK4KhkAViCFQjpPJechXeyWu3/fQCzbQY6xk5DB1Gr QYiQSk4d4A8NXpVRr9TIoQ4N+ARnqZeVZMWGv3osFvPLKg4+I0vn7sjl005u3nY8Nfod YW9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=c1IUka5tijpIrp0HcvGSlR2aksa59ckg6dwZ4iF3jNc=; fh=uRtjX4tW/2u6hJ6MjD3hufbLT/8nXPchx+f+WmII/I4=; b=MIHKXzWIY6bFax9YtzQn9h7ORwuTB2kYI5j0KtvMFcmMDBCem6E9kggYyXwxh9CF+Z hZ7fXqojdQJAu46vPPmK5dmsMxFXlC1q14lXbdyZo2/OU7Fl8HhZjODuWBr8anTB3Y70 OpIxopXbKb2jQREPJ7NkJO7vaJwU0ZkIGiNlsOZl06XzZrLcJV8b3joOJfCjpLUmQg4T 9TBbJ0A09u2f50nAFRQ/liU8ld+9erTiHVeS/FffWQQgQAXEBaLJfW0euQWGXfUUuh0J 3wAuRnfZf1RG/TrX/GIsqwJELmi0iwpmQfafkyp6mwvuPzzF97PCS6/tXfnqze4R/Drl zQgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=Nq8wEKbO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wanadoo.fr Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id t18-20020a056a0021d200b0068fea05ecdasi2820073pfj.182.2023.09.14.22.30.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 22:30:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=Nq8wEKbO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wanadoo.fr Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 0A61D82723A8; Thu, 14 Sep 2023 13:31:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230133AbjINUbf (ORCPT + 33 others); Thu, 14 Sep 2023 16:31:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230116AbjINUb1 (ORCPT ); Thu, 14 Sep 2023 16:31:27 -0400 Received: from smtp.smtpout.orange.fr (smtp-16.smtpout.orange.fr [80.12.242.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A59D2704 for ; Thu, 14 Sep 2023 13:31:23 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id gszUqMvFz7mcCgszhqSuk1; Thu, 14 Sep 2023 22:31:22 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1694723482; bh=c1IUka5tijpIrp0HcvGSlR2aksa59ckg6dwZ4iF3jNc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Nq8wEKbOwyagqkhVYlXixP+fuOOqU8zwUvxYo6II81d5G4IkN0J0t3Nf+/UaVUTfw yQh6KOw1za3vgcL8WO9nEpJUo6zZiN2jJxvdDS3kq93kfpDqj01vJEKdW7BrcxHnV6 zRKqvZsvZa0kF9c7uC9fHidpGwVFGtt3SafoXXB//Wo/kyK3EG+1y+nOJmawmnEcV9 X+7Vo/4J/l8Nm4spTLkfl1zKyKkCvG51dtOVQy+ini++O8oMm0iZ7NEX4mCoMTdBly wuLvQzI08zUcZYd+ryss/AoT7/lKvx8BgD4QSLuksdc2c2JELJgKLnoLS474/Rx72p TK4vxugtfiFpw== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Thu, 14 Sep 2023 22:31:22 +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 v2 5/5] clk: imx: imx8: Simplify clk_imx_acm_detach_pm_domains() Date: Thu, 14 Sep 2023 22:31:06 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 14 Sep 2023 13:31:35 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777080305104630807 X-GMAIL-MSGID: 1777080305104630807 The return value of clk_imx_acm_detach_pm_domains() is never used. Simplify the code and turn it into a void function. Reviewed-by: Peng Fan 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 c744fb78bb44..735b08296cc8 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 device *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; if (dev_pm->num_domains <= 1) - return 0; + return; for (i = 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; } static int imx8_acm_clk_probe(struct platform_device *pdev)