From patchwork Fri Jul 12 14:26:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 13731850 X-Patchwork-Delegate: geert@linux-m68k.org Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [195.130.132.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CCE2017166F for ; Fri, 12 Jul 2024 14:26:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.132.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720794416; cv=none; b=iFTH7lzJxveydmEyfUGFUD3OahAyoC26+dH1Ajije1LcX5NOnncw72vKzA4hU1aOasPcD6cZUwghgnHxPnsIzXZVvG3Sb0vB0yESQRfjvmyFRzPb7zOL8xfklQSM4L17ceue0P7SrRJGgtIgKmAAvFZw6HjGqPlvGcqa2u0NgzU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720794416; c=relaxed/simple; bh=ZXoSJ2+yCjy+D6I7Iv9XvYmGgnwl1AQE1rdRBMiyQlY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ET+yhh8hkVWNzjps7IqdZFms3UYL6MU++2Ok6xqGaG8T7nf7IL4UZdUwp2Ng5FrNbGJC4FnR1tVwUEnA8ayBLjcFwRkshrrJjD6cWLjfhCaGkxEd7sBnbTJQs8wIg+NZeowgQ9ca6n9p5b7H1upmAkUgEXO0dj3FLMuJOdd1i3w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.132.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:9b6b:6da0:997b:7165]) by xavier.telenet-ops.be with bizsmtp id meSn2C00346XLxg01eSnEY; Fri, 12 Jul 2024 16:26:47 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1sSHEG-001qJ1-7I; Fri, 12 Jul 2024 16:26:46 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1sSHEU-000W9X-Rc; Fri, 12 Jul 2024 16:26:46 +0200 From: Geert Uytterhoeven To: Michael Turquette , Stephen Boyd , Yoshihiro Shimoda , =?utf-8?q?Niklas_S?= =?utf-8?q?=C3=B6derlund?= , Cong Dang Cc: linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 1/4] clk: renesas: r8a779a0: cpg_pll_configs should be __initconst Date: Fri, 12 Jul 2024 16:26:43 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 cpg_pll_configs[] is only used during initialization. Hence make it __initconst, so it will be freed later. Fixes: 17bcc8035d2d19fc ("clk: renesas: cpg-mssr: Add support for R-Car V3U") Signed-off-by: Geert Uytterhoeven --- drivers/clk/renesas/r8a779a0-cpg-mssr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/renesas/r8a779a0-cpg-mssr.c b/drivers/clk/renesas/r8a779a0-cpg-mssr.c index ff3f85e906fe17e1..d75d01b4c554a9e0 100644 --- a/drivers/clk/renesas/r8a779a0-cpg-mssr.c +++ b/drivers/clk/renesas/r8a779a0-cpg-mssr.c @@ -253,7 +253,7 @@ static const unsigned int r8a779a0_crit_mod_clks[] __initconst = { */ #define CPG_PLL_CONFIG_INDEX(md) ((((md) & BIT(14)) >> 13) | \ (((md) & BIT(13)) >> 13)) -static const struct rcar_gen4_cpg_pll_config cpg_pll_configs[4] = { +static const struct rcar_gen4_cpg_pll_config cpg_pll_configs[4] __initconst = { /* EXTAL div PLL1 mult/div PLL2 mult/div PLL3 mult/div PLL4 mult/div PLL5 mult/div PLL6 mult/div OSC prediv */ { 1, 128, 1, 0, 0, 0, 0, 144, 1, 192, 1, 0, 0, 16, }, { 1, 106, 1, 0, 0, 0, 0, 120, 1, 160, 1, 0, 0, 19, },