From nobody Fri Dec 19 20:14:39 2025 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 E6EFE181CEB; Sun, 24 Mar 2024 23:48:46 +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=1711324128; cv=none; b=HIhKuZUqJzYtldrjkUld+CpBlQut45L+Kr3AqS8SHcDxsT0QgXarZ6EH6oP4eOX3UYfmwnj2e+z7BYCb+V0WEGM71++Wt7vug8ALOTwP/QMXnUYTVud5DPNAxCMIQZpiKmOeZJruScQe8Cyg5ILywdKaOQUVdNlktssH2zWI+5g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711324128; c=relaxed/simple; bh=rNDijfEyC5ir0j9HjxxEwdGbtVG4058Sq8QzGTqaCdg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IPl3Gtvnv/PbLz9a8CwUQ2Yj3Vw6cnnfzM+k96SxuxEnW2KL4rnE7us57aDbpAQcKwHV09f5kcOYD6Kygmm8KtSJVJ+ffpMiw+HmIB04Rca3zyNjfZWz9MV5xRCCu7QHg9yRDZp/6b60y6GIitkzPVccUvRiJWt61S2BSsr5p9E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OQMfnODo; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OQMfnODo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2CF3EC433A6; Sun, 24 Mar 2024 23:48:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711324126; bh=rNDijfEyC5ir0j9HjxxEwdGbtVG4058Sq8QzGTqaCdg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OQMfnODouKKGm3PoNNdfMoj6WpwesBz3J7cgRvosAa00naiyqdzGZibXPnVwZc5XL md6egDitQ3DHyXQqVGzqNMmXjmZ+btvdGITPQiiw7IvQxw4QCy7aBjBKZBj2G6PHiM YznR8g1lSiIy77EyAhgxBZ74BZmpudwLPx0QbfFFsAZzBusqnbSRskx5o5fAlEpd9h PvtQZ9QTw1twPHlP1F4ChFmD68t2/WveHFJM1fXo4PrqzNXK1mHAXDC18FoKXp728v w0qflEPwY3wLHZQk7MKjDNgNqY9BH1XJIeJ7aC+pSpUKM1xjPXPkY/Dnhe/J5VYuPU EmC18hbCi9osQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Christophe JAILLET , Stephen Boyd , Sasha Levin Subject: [PATCH 5.4 124/183] clk: hisilicon: hi3519: Release the correct number of gates in hi3519_clk_unregister() Date: Sun, 24 Mar 2024 19:45:37 -0400 Message-ID: <20240324234638.1355609-125-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324234638.1355609-1-sashal@kernel.org> References: <20240324234638.1355609-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: quoted-printable Content-Type: text/plain; charset="utf-8" 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 fi= x some issues") Signed-off-by: Christophe JAILLET Link: https://lore.kernel.org/r/c3f1877c9a0886fa35c949c8f0ef25547f284f18.17= 04912510.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 ad0c7f350cf03..60d8a27a90824 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_devic= e *pdev) of_clk_del_provider(pdev->dev.of_node); =20 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), --=20 2.43.0