From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB

---
 kernel/drivers/clk/hisilicon/clk-hisi-phase.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/kernel/drivers/clk/hisilicon/clk-hisi-phase.c b/kernel/drivers/clk/hisilicon/clk-hisi-phase.c
index 183c557..ba6afad 100644
--- a/kernel/drivers/clk/hisilicon/clk-hisi-phase.c
+++ b/kernel/drivers/clk/hisilicon/clk-hisi-phase.c
@@ -75,10 +75,10 @@
 
 	spin_lock_irqsave(phase->lock, flags);
 
-	val = clk_readl(phase->reg);
+	val = readl(phase->reg);
 	val &= ~phase->mask;
 	val |= regval << phase->shift;
-	clk_writel(val, phase->reg);
+	writel(val, phase->reg);
 
 	spin_unlock_irqrestore(phase->lock, flags);
 
@@ -95,7 +95,7 @@
 		void __iomem *base, spinlock_t *lock)
 {
 	struct clk_hisi_phase *phase;
-	struct clk_init_data init = {};
+	struct clk_init_data init;
 
 	phase = devm_kzalloc(dev, sizeof(struct clk_hisi_phase), GFP_KERNEL);
 	if (!phase)
@@ -103,7 +103,7 @@
 
 	init.name = clks->name;
 	init.ops = &clk_phase_ops;
-	init.flags = clks->flags | CLK_IS_BASIC;
+	init.flags = clks->flags;
 	init.parent_names = clks->parent_names ? &clks->parent_names : NULL;
 	init.num_parents = clks->parent_names ? 1 : 0;
 

--
Gitblit v1.6.2