diff options
author | Jerome Brunet <jbrunet@baylibre.com> | 2017-07-27 09:09:40 -0400 |
---|---|---|
committer | Neil Armstrong <narmstrong@baylibre.com> | 2017-08-04 12:01:59 -0400 |
commit | 7605aa5b4198ad819dde7c39b3c968f57ccb568e (patch) | |
tree | 1081c374b5d03c0b460b7cce9169eb16744d4cd6 | |
parent | 004f6f462d4127350fce1a2822d00990baedf3a0 (diff) |
clk: meson: gxbb: fix clk_mclk_i958 divider flags
CLK_DIVIDER_ROUND_CLOSEST was incorrectly put in the hw.init flags
while it should have been in the divider flags
Fixes: 3c277c247eab ("clk: meson: gxbb: add cts_mclk_i958")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
-rw-r--r-- | drivers/clk/meson/gxbb.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c index 0bd028adadd5..60342cfb0bf6 100644 --- a/drivers/clk/meson/gxbb.c +++ b/drivers/clk/meson/gxbb.c | |||
@@ -876,7 +876,7 @@ static struct clk_mux gxbb_cts_mclk_i958_sel = { | |||
876 | /* Default parent unknown (register reset value: 0) */ | 876 | /* Default parent unknown (register reset value: 0) */ |
877 | .table = (u32[]){ 1, 2, 3 }, | 877 | .table = (u32[]){ 1, 2, 3 }, |
878 | .lock = &clk_lock, | 878 | .lock = &clk_lock, |
879 | .hw.init = &(struct clk_init_data){ | 879 | .hw.init = &(struct clk_init_data) { |
880 | .name = "cts_mclk_i958_sel", | 880 | .name = "cts_mclk_i958_sel", |
881 | .ops = &clk_mux_ops, | 881 | .ops = &clk_mux_ops, |
882 | .parent_names = (const char *[]){ "mpll0", "mpll1", "mpll2" }, | 882 | .parent_names = (const char *[]){ "mpll0", "mpll1", "mpll2" }, |
@@ -890,12 +890,13 @@ static struct clk_divider gxbb_cts_mclk_i958_div = { | |||
890 | .shift = 16, | 890 | .shift = 16, |
891 | .width = 8, | 891 | .width = 8, |
892 | .lock = &clk_lock, | 892 | .lock = &clk_lock, |
893 | .hw.init = &(struct clk_init_data){ | 893 | .flags = CLK_DIVIDER_ROUND_CLOSEST, |
894 | .hw.init = &(struct clk_init_data) { | ||
894 | .name = "cts_mclk_i958_div", | 895 | .name = "cts_mclk_i958_div", |
895 | .ops = &clk_divider_ops, | 896 | .ops = &clk_divider_ops, |
896 | .parent_names = (const char *[]){ "cts_mclk_i958_sel" }, | 897 | .parent_names = (const char *[]){ "cts_mclk_i958_sel" }, |
897 | .num_parents = 1, | 898 | .num_parents = 1, |
898 | .flags = CLK_SET_RATE_PARENT | CLK_DIVIDER_ROUND_CLOSEST, | 899 | .flags = CLK_SET_RATE_PARENT, |
899 | }, | 900 | }, |
900 | }; | 901 | }; |
901 | 902 | ||