forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/drivers/clk/hisilicon/clk-hisi-phase.c
....@@ -75,10 +75,10 @@
7575
7676 spin_lock_irqsave(phase->lock, flags);
7777
78
- val = clk_readl(phase->reg);
78
+ val = readl(phase->reg);
7979 val &= ~phase->mask;
8080 val |= regval << phase->shift;
81
- clk_writel(val, phase->reg);
81
+ writel(val, phase->reg);
8282
8383 spin_unlock_irqrestore(phase->lock, flags);
8484
....@@ -95,7 +95,7 @@
9595 void __iomem *base, spinlock_t *lock)
9696 {
9797 struct clk_hisi_phase *phase;
98
- struct clk_init_data init = {};
98
+ struct clk_init_data init;
9999
100100 phase = devm_kzalloc(dev, sizeof(struct clk_hisi_phase), GFP_KERNEL);
101101 if (!phase)
....@@ -103,7 +103,7 @@
103103
104104 init.name = clks->name;
105105 init.ops = &clk_phase_ops;
106
- init.flags = clks->flags | CLK_IS_BASIC;
106
+ init.flags = clks->flags;
107107 init.parent_names = clks->parent_names ? &clks->parent_names : NULL;
108108 init.num_parents = clks->parent_names ? 1 : 0;
109109