提交 5d1c04dd 编写于 作者: S Stephen Boyd

clk: meson: Drop unused local variable and add static

Fixes the following warnings:

drivers/clk/meson/meson8b.c:512:19: warning: symbol 'meson8b_mpeg_clk_div' was not declared. Should it be static?
drivers/clk/meson/meson8b.c:526:19: warning: symbol 'meson8b_clk81' was not declared. Should it be static?
drivers/clk/meson/meson8b.c:540:19: warning: symbol 'meson8b_cpu_in_sel' was not declared. Should it be static?
drivers/clk/meson/meson8b.c:591:19: warning: symbol 'meson8b_cpu_scale_div' was not declared. Should it be static?
drivers/clk/meson/meson8b.c:608:19: warning: symbol 'meson8b_cpu_scale_out_sel' was not declared. Should it be static?
drivers/clk/meson/meson8b.c:626:19: warning: symbol 'meson8b_cpu_clk' was not declared. Should it be static?
drivers/clk/meson/gxbb.c:392:27: warning: symbol 'gxbb_gp0_init_regs' was not declared. Should it be static?
drivers/clk/meson/gxbb.c:439:27: warning: symbol 'gxl_gp0_init_regs' was not declared. Should it be static?
drivers/clk/meson/axg.c:195:27: warning: symbol 'axg_gp0_init_regs' was not declared. Should it be static?
drivers/clk/meson/axg.c:248:27: warning: symbol 'axg_hifi_init_regs' was not declared. Should it be static?
drivers/clk/meson/meson8b.c: In function 'meson8b_clkc_probe':
drivers/clk/meson/meson8b.c:1052:14: warning: unused variable 'clk' [-Wunused-variable]
Signed-off-by: NStephen Boyd <sboyd@kernel.org>
上级 186dcd4a
...@@ -192,7 +192,7 @@ static const struct pll_rate_table axg_gp0_pll_rate_table[] = { ...@@ -192,7 +192,7 @@ static const struct pll_rate_table axg_gp0_pll_rate_table[] = {
{ /* sentinel */ }, { /* sentinel */ },
}; };
const struct reg_sequence axg_gp0_init_regs[] = { static const struct reg_sequence axg_gp0_init_regs[] = {
{ .reg = HHI_GP0_PLL_CNTL1, .def = 0xc084b000 }, { .reg = HHI_GP0_PLL_CNTL1, .def = 0xc084b000 },
{ .reg = HHI_GP0_PLL_CNTL2, .def = 0xb75020be }, { .reg = HHI_GP0_PLL_CNTL2, .def = 0xb75020be },
{ .reg = HHI_GP0_PLL_CNTL3, .def = 0x0a59a288 }, { .reg = HHI_GP0_PLL_CNTL3, .def = 0x0a59a288 },
...@@ -245,7 +245,7 @@ static struct clk_regmap axg_gp0_pll = { ...@@ -245,7 +245,7 @@ static struct clk_regmap axg_gp0_pll = {
}, },
}; };
const struct reg_sequence axg_hifi_init_regs[] = { static const struct reg_sequence axg_hifi_init_regs[] = {
{ .reg = HHI_HIFI_PLL_CNTL1, .def = 0xc084b000 }, { .reg = HHI_HIFI_PLL_CNTL1, .def = 0xc084b000 },
{ .reg = HHI_HIFI_PLL_CNTL2, .def = 0xb75020be }, { .reg = HHI_HIFI_PLL_CNTL2, .def = 0xb75020be },
{ .reg = HHI_HIFI_PLL_CNTL3, .def = 0x0a6a3a88 }, { .reg = HHI_HIFI_PLL_CNTL3, .def = 0x0a6a3a88 },
......
...@@ -389,7 +389,7 @@ static struct clk_regmap gxbb_sys_pll = { ...@@ -389,7 +389,7 @@ static struct clk_regmap gxbb_sys_pll = {
}, },
}; };
const struct reg_sequence gxbb_gp0_init_regs[] = { static const struct reg_sequence gxbb_gp0_init_regs[] = {
{ .reg = HHI_GP0_PLL_CNTL2, .def = 0x69c80000 }, { .reg = HHI_GP0_PLL_CNTL2, .def = 0x69c80000 },
{ .reg = HHI_GP0_PLL_CNTL3, .def = 0x0a5590c4 }, { .reg = HHI_GP0_PLL_CNTL3, .def = 0x0a5590c4 },
{ .reg = HHI_GP0_PLL_CNTL4, .def = 0x0000500d }, { .reg = HHI_GP0_PLL_CNTL4, .def = 0x0000500d },
...@@ -436,7 +436,7 @@ static struct clk_regmap gxbb_gp0_pll = { ...@@ -436,7 +436,7 @@ static struct clk_regmap gxbb_gp0_pll = {
}, },
}; };
const struct reg_sequence gxl_gp0_init_regs[] = { static const struct reg_sequence gxl_gp0_init_regs[] = {
{ .reg = HHI_GP0_PLL_CNTL1, .def = 0xc084b000 }, { .reg = HHI_GP0_PLL_CNTL1, .def = 0xc084b000 },
{ .reg = HHI_GP0_PLL_CNTL2, .def = 0xb75020be }, { .reg = HHI_GP0_PLL_CNTL2, .def = 0xb75020be },
{ .reg = HHI_GP0_PLL_CNTL3, .def = 0x0a59a288 }, { .reg = HHI_GP0_PLL_CNTL3, .def = 0x0a59a288 },
......
...@@ -509,7 +509,7 @@ static struct clk_regmap meson8b_mpeg_clk_sel = { ...@@ -509,7 +509,7 @@ static struct clk_regmap meson8b_mpeg_clk_sel = {
}, },
}; };
struct clk_regmap meson8b_mpeg_clk_div = { static struct clk_regmap meson8b_mpeg_clk_div = {
.data = &(struct clk_regmap_div_data){ .data = &(struct clk_regmap_div_data){
.offset = HHI_MPEG_CLK_CNTL, .offset = HHI_MPEG_CLK_CNTL,
.shift = 0, .shift = 0,
...@@ -523,7 +523,7 @@ struct clk_regmap meson8b_mpeg_clk_div = { ...@@ -523,7 +523,7 @@ struct clk_regmap meson8b_mpeg_clk_div = {
}, },
}; };
struct clk_regmap meson8b_clk81 = { static struct clk_regmap meson8b_clk81 = {
.data = &(struct clk_regmap_gate_data){ .data = &(struct clk_regmap_gate_data){
.offset = HHI_MPEG_CLK_CNTL, .offset = HHI_MPEG_CLK_CNTL,
.bit_idx = 7, .bit_idx = 7,
...@@ -537,7 +537,7 @@ struct clk_regmap meson8b_clk81 = { ...@@ -537,7 +537,7 @@ struct clk_regmap meson8b_clk81 = {
}, },
}; };
struct clk_regmap meson8b_cpu_in_sel = { static struct clk_regmap meson8b_cpu_in_sel = {
.data = &(struct clk_regmap_mux_data){ .data = &(struct clk_regmap_mux_data){
.offset = HHI_SYS_CPU_CLK_CNTL0, .offset = HHI_SYS_CPU_CLK_CNTL0,
.mask = 0x1, .mask = 0x1,
...@@ -588,7 +588,7 @@ static const struct clk_div_table cpu_scale_table[] = { ...@@ -588,7 +588,7 @@ static const struct clk_div_table cpu_scale_table[] = {
{ /* sentinel */ }, { /* sentinel */ },
}; };
struct clk_regmap meson8b_cpu_scale_div = { static struct clk_regmap meson8b_cpu_scale_div = {
.data = &(struct clk_regmap_div_data){ .data = &(struct clk_regmap_div_data){
.offset = HHI_SYS_CPU_CLK_CNTL1, .offset = HHI_SYS_CPU_CLK_CNTL1,
.shift = 20, .shift = 20,
...@@ -605,7 +605,7 @@ struct clk_regmap meson8b_cpu_scale_div = { ...@@ -605,7 +605,7 @@ struct clk_regmap meson8b_cpu_scale_div = {
}, },
}; };
struct clk_regmap meson8b_cpu_scale_out_sel = { static struct clk_regmap meson8b_cpu_scale_out_sel = {
.data = &(struct clk_regmap_mux_data){ .data = &(struct clk_regmap_mux_data){
.offset = HHI_SYS_CPU_CLK_CNTL0, .offset = HHI_SYS_CPU_CLK_CNTL0,
.mask = 0x3, .mask = 0x3,
...@@ -623,7 +623,7 @@ struct clk_regmap meson8b_cpu_scale_out_sel = { ...@@ -623,7 +623,7 @@ struct clk_regmap meson8b_cpu_scale_out_sel = {
}, },
}; };
struct clk_regmap meson8b_cpu_clk = { static struct clk_regmap meson8b_cpu_clk = {
.data = &(struct clk_regmap_mux_data){ .data = &(struct clk_regmap_mux_data){
.offset = HHI_SYS_CPU_CLK_CNTL0, .offset = HHI_SYS_CPU_CLK_CNTL0,
.mask = 0x1, .mask = 0x1,
...@@ -1049,7 +1049,6 @@ static const struct regmap_config clkc_regmap_config = { ...@@ -1049,7 +1049,6 @@ static const struct regmap_config clkc_regmap_config = {
static int meson8b_clkc_probe(struct platform_device *pdev) static int meson8b_clkc_probe(struct platform_device *pdev)
{ {
int ret, i; int ret, i;
struct clk *clk;
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct regmap *map; struct regmap *map;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册