Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2391776lqp; Sun, 24 Mar 2024 17:24:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXIiVTKXN+Q+aa8FmVBw4Hik7fmbZuMhD8wjSj7cRX+qpHdR4dBhU36uB2FY7HV7m9OLFZ+bd5Fg4MjAq1VdMfDlYtwBcRsgO+w2ht+4w== X-Google-Smtp-Source: AGHT+IGzxtgKzTdbuO28xjpI84cxFARujwoeP8s5NiocwplDi8HUl2354jSN9L1MOPUkmHCsMy6r X-Received: by 2002:a17:90a:f402:b0:29d:d93a:d6e7 with SMTP id ch2-20020a17090af40200b0029dd93ad6e7mr4855507pjb.26.1711326261171; Sun, 24 Mar 2024 17:24:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711326261; cv=pass; d=google.com; s=arc-20160816; b=xKed1oCUnVaPYNuAXHTFrAMQT8QUZ4Sw4X6tQoF0Cr7mX7gCI+PHD5uO8DSOqaIHl/ 7fzebulPdhyCUMaICw5xTc4q3wdbZbK4zwaDh+oaktFiuv3b2CPLgwWi0/bhDEb6r444 BGbwejYF2Pfuqtnb5edFEffky0Xy2Yx76pKshMLU3wp8HE1EMeknrRAWcf/xWolSANZs cAF94FT+S9fDVSVUeFDCOz/eP2gstV3JHVVDIf5yULw4swmjd6/vdrucNKIo4VP0N9Ht Xeg0dm5e1D15SeUjQwybZF5LAOdU7PLEl6O/Bs2iXoFwCRyvXgzg9rILfPqXMHZZSU7E Ddkw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=QUjknOJ7SRwaLWmDaR3vKEO1vaCXNzVzOromrD/JAN4=; fh=CXO8gYFvn0et1J6g92tiAwbWoWajgtFZXXhcMPrv/bQ=; b=WrnbUchlBYkkm9KvufNDaC/J1dZiD8k0u8zJvxVOlnf/QHlRQrTfTU9sEFeySuhchx zfszqklHDfC3nMfrpuZ7v4s2gPvlYwrVtSTmigxkpwAfhCppk9wC6v8nXtjRc+Nrjw2T G5tTyIegtrEGkWgxDxsMYCCqj4xl+NJo3SUwxQP63WvdI6gmWBIbQw1zuwHzOI1AyiaQ hcNZYqyhlTb58UzHOqoEjVwnK0peArsn6sxBMZgUc8YpKZNGiQnKpgtX1mn7FCVef4Y2 QigfuBrUGkjsaXlJN20AtUbvLsHHpg7zUeExCVy5nNx63pLeJTg5SGNqoVnGToAigVe2 ayWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=thLRky9J; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113343-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113343-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id r12-20020a17090aad0c00b002a015f81350si6585564pjq.10.2024.03.24.17.24.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:24:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113343-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=thLRky9J; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113343-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113343-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 22915B23D47 for ; Mon, 25 Mar 2024 00:14:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B41A198B95; Sun, 24 Mar 2024 22:42:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="thLRky9J" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39E3E198B75; Sun, 24 Mar 2024 22:42:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320144; cv=none; b=M+MxoxoZllW46gWWvtCVvko9GbZxTwRmwHUAbq5aYe77aKIYGmg9Ad50CGWVpKsZIjLadTtli44FU+1k0dpnEVM6W4wsg/ebDUyklmGd83jnODjO1fEesUIvXY5NPiUn6xZBspudtZTExnnRygLtuzFcW8/t6JZdGwqj0mIihfQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320144; c=relaxed/simple; bh=0jeLzV7xh9um03QKzMZKQCMNMFblAXkgO2KjG9Ao6Bk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=o5dKhmxuBh3jsNO2LuKpmJhQU04b7chG5dilqbymDRCaGIg5ETcnW3oAbs0+YlfbzKRgZk5UYChvaUmv8E8sBasePb5573GqiusqZld4CZ2UERHwvdaAgINA48CefD2o5QYqn2Tz3+XZDSaVxIzx2fOmVetxWwOD5Y8FjDuC3H4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=thLRky9J; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78E71C43390; Sun, 24 Mar 2024 22:42:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320144; bh=0jeLzV7xh9um03QKzMZKQCMNMFblAXkgO2KjG9Ao6Bk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=thLRky9JzvkJSUZYGAygg+rkXxubfIxgl0xcFRc38BH39uyvk/DKH2/p6sMCZYOMK 6ghVwdraFcozjeEgxyzb1W2otG73cizNfBjxPxc44Q7M+zypHECjP2daHZvPn45qJQ A78eoSZ2b2o4IbXVJWxc6LiaxwP85WpB5Q7YVw9AlaW1oHbpIlnUWS+jbCOYRjmRn0 XyGcYzf+ekaj/sR4UZa2Ls46m4YNdxuRFABCDQNvgr78jtFzhMBjtTlKXi+ap2xl2R JRXW3d3uCjdaWDeF0vcD8qs2ELjBuqHTejvlbkeEzlSERcVkYHRLkANjVFwrChLPPA 2yS0xQHzmlivA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Christophe JAILLET , Stephen Boyd , Sasha Levin Subject: [PATCH 6.8 452/715] clk: hisilicon: hi3519: Release the correct number of gates in hi3519_clk_unregister() Date: Sun, 24 Mar 2024 18:30:31 -0400 Message-ID: <20240324223455.1342824-453-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Christophe JAILLET [ Upstream commit 74e39f526d95c0c119ada1874871ee328c59fbee ] The gates are stored in 'hi3519_gate_clks', not 'hi3519_mux_clks'. This is also in line with how hisi_clk_register_gate() is called in the probe. Fixes: 224b3b262c52 ("clk: hisilicon: hi3519: add driver remove path and fix some issues") Signed-off-by: Christophe JAILLET Link: https://lore.kernel.org/r/c3f1877c9a0886fa35c949c8f0ef25547f284f18.1704912510.git.christophe.jaillet@wanadoo.fr Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/hisilicon/clk-hi3519.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/hisilicon/clk-hi3519.c b/drivers/clk/hisilicon/clk-hi3519.c index b871872d9960d..141b727ff60d6 100644 --- a/drivers/clk/hisilicon/clk-hi3519.c +++ b/drivers/clk/hisilicon/clk-hi3519.c @@ -130,7 +130,7 @@ static void hi3519_clk_unregister(struct platform_device *pdev) of_clk_del_provider(pdev->dev.of_node); hisi_clk_unregister_gate(hi3519_gate_clks, - ARRAY_SIZE(hi3519_mux_clks), + ARRAY_SIZE(hi3519_gate_clks), crg->clk_data); hisi_clk_unregister_mux(hi3519_mux_clks, ARRAY_SIZE(hi3519_mux_clks), -- 2.43.0