Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2527123lqp; Mon, 25 Mar 2024 01:11:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVc3j0cEdkUxE3MDcbydG/9oE1QcT1PcGoaPrq9gbRLDdtadQDEWAYEZi4W9BgsgVIbmneiS9neBvJ8mIjmUOcoJyc8y2oFhXqNiIYbnA== X-Google-Smtp-Source: AGHT+IEthYBJrFE/rCQdixoUeRAaic0Q3ygD4fRCxzYCsaV2ee9tb8lmPpuQSqgX88LkI627G55J X-Received: by 2002:a5b:590:0:b0:dc2:3f75:1f79 with SMTP id l16-20020a5b0590000000b00dc23f751f79mr4015815ybp.23.1711354303623; Mon, 25 Mar 2024 01:11:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711354303; cv=pass; d=google.com; s=arc-20160816; b=zCxx7f5ghRb7C9oSB1EAOz05Cp64PniYpkABGqmNxk87TocPsuLpAST4ThAC9Kw2h+ mMXixDKQFIhesQdNRW4NUDMx05bscEyzu96xjk4SthUPFGE8fN2e/1JKY1WVt1QEsYZy NGmgoIYdAuDE9BVKC64aJQIYP0bLX+rJ2+TjQJ2Id79M6AdG9e1/phPl+6BcsCz+hjz6 sb704lPa/myi+Ux6nowF9x5jxgSOeZUh+5fNeyufj7T1wLi9Y1hRWvfwMT1GWYOXJNv4 X+vPpjpGZW2+Zv62aSltvwX1ibFBA+GRQeR15AQvQdI12z+ZFSjssczeYigeE+shST+i 8U6w== 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=47W3t+/esO00i/5yX9tqWAKeede5j8SlQlszPIAbBTo=; fh=CXO8gYFvn0et1J6g92tiAwbWoWajgtFZXXhcMPrv/bQ=; b=x9dt5qkMXQ0dPl3Ii7TdjGMaZ7Qiz7+H7iz7rnxEcqYDCXbPeEq32RQA38kgwg0yE8 6YbGewyarWXBQTQICejPiBriG/syU6y2RiEb3Yi0jhDFb1vUhq1D2Pn4iQvCuMUQSCZm xOB31t681GSBVokjGsWvefCuI2BkTUmxxA6BDpY4TNzzKH5y1PpKljy5C+37Z6G2U/bE fUp1AA9rKanPU4sK3JtPzFxDK8itihjUBYP3bWxU46wYFQoCXG5h/tEAXvp80yksVnq+ RC/To7P91aOlBTJdbouvqyx/hdEHj470igqjBb9geJx7tr8sXy6G5ZdxRrKXlFnoQD4Z U6zQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iLVdTC9O; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115961-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115961-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d17-20020a05622a101100b0043148c0c66bsi3433619qte.317.2024.03.25.01.11.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 01:11:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-115961-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iLVdTC9O; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115961-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115961-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 518C31C2C6F8 for ; Mon, 25 Mar 2024 08:11:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA027268029; Mon, 25 Mar 2024 03:04:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iLVdTC9O" 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 B017214AD3D; Sun, 24 Mar 2024 23:17:07 +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=1711322227; cv=none; b=EpXhA7QSurjuxwJuzWmGGS4TCsDdMozMl0n0p2CJHnrpxCrIW3Untyfuis1ZHJDELsN3a0qSb7TDXbxFAaMKyJNx0b2wD6xrtiGJvJYNnWQjNJS/u6JoP6YFw5wBOZlykJ2TgRXUqFAZPPHbysUAafk1tKztuARgz/+Z7YWiz+0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322227; c=relaxed/simple; bh=rNDijfEyC5ir0j9HjxxEwdGbtVG4058Sq8QzGTqaCdg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=btGkq3SUrxe4ORYDJ4sBVXTzevw2YzNM3SO+wVrZBQEsZMJ/HDgZxNe3IWvxiJBMjXtFB1clPG3/0M6VEo41avP134HwdG2exFshYDhOXtxcxiBFMrE4p3f7XERc3jcgp32V8PWbL7SOT5B9DetVqPhJSX8y7qL8l5xjroa6ypc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iLVdTC9O; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFB7EC433F1; Sun, 24 Mar 2024 23:17:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711322227; bh=rNDijfEyC5ir0j9HjxxEwdGbtVG4058Sq8QzGTqaCdg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iLVdTC9OAnaqRVWFqUk3JlIpd/sokhqZCsfC6/ZGf+RYwynfaPQUQaMWEqhRe8x5B 93zIUek4u6upH8loLTLj4EZySD3calVsFsA2ANOkO7kbuxtATsu+mkk8lRjQGOt34t NziG85QN/6+nHfXJen09DrvdZbI6Da2SnzAGlevyN8JX19hAlQtV6mRl3+o+R34m/k 9gfu2dKQg0JLM6F/uewftKMGvMW4+F3Exmxbsumk6efwyW8HyCPv1TkRHUgtsLmLEF fXIdCCDM2Zm3Gdy2FCrB7tsyZavqtCFsA+hlnwV04BjKYoy2BXOmfdbu4d7LhbWOWN dvRxJ/EPWcsxw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Christophe JAILLET , Stephen Boyd , Sasha Levin Subject: [PATCH 6.1 308/451] clk: hisilicon: hi3519: Release the correct number of gates in hi3519_clk_unregister() Date: Sun, 24 Mar 2024 19:09:44 -0400 Message-ID: <20240324231207.1351418-309-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324231207.1351418-1-sashal@kernel.org> References: <20240324231207.1351418-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 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_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