Skip to contentSkip to conversation

clk: tegra: Fix vic03 mux index

PATCH In review Peter De Schrijver 2 participants 2 messages Feb 20, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: tegra: Fix vic03 mux index

The vic03 mux uses a linear mapping.

---
 drivers/clk/tegra/clk-tegra-periph.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/clk/tegra/clk-tegra-periph.c +1 -3
index f5376a3..1fa5c3f 100644
@@ -371,9 +371,7 @@ static const char *mux_pllp3_pllc_clkm[] = {
 static const char *mux_pllm_pllc_pllp_plla_pllc2_c3_clkm[] = {
 	"pll_m", "pll_c", "pll_p", "pll_a", "pll_c2", "pll_c3", "clk_m"
 };
-static u32 mux_pllm_pllc_pllp_plla_pllc2_c3_clkm_idx[] = {
-	[0] = 0, [1] = 1, [2] = 2, [3] = 3, [4] = 4, [5] = 6,
-};
+#define mux_pllm_pllc_pllp_plla_pllc2_c3_clkm_idx NULL
 
 static const char *mux_pllm_pllc2_c_c3_pllp_plla_pllc4[] = {
 	"pll_m", "pll_c2", "pll_c", "pll_c3", "pll_p", "pll_a_out0", "pll_c4",
Signature · 1 line
1.7.7.rc0.72.g4b5ea.dirty
Reviewed-by on v1 1/1
#1 lore raw
Quoted 1 line · Peter De Schrijver

The vic03 mux uses a linear mapping.

(although I'm not sure why the clock is called vic03 rather than just vic as it is in the TRM, but that's unrelated to this patch)