diff options
author | Stephen Boyd <sboyd@kernel.org> | 2019-04-25 13:57:37 -0400 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-04-26 13:40:49 -0400 |
commit | 90b6c5c73c6904ac200161fc38974d867f0535b0 (patch) | |
tree | 8170ad2fa6f01542bdefbb1d972fae517e5a60a3 | |
parent | 869decd1ff197c3083cb8b58f7dcac201038c381 (diff) |
clk: Remove CLK_IS_BASIC clk flag
This flag was historically used to indicate that a clk is a "basic" type
of clk like a mux, divider, gate, etc. This never turned out to be very
useful though because it was hard to cleanly split "basic" clks from
other clks in a system. This one flag was a way for type introspection
and it just didn't scale. If anything, it was used by the TI clk driver
to indicate that a clk_hw wasn't contained in the SoC specific clk
structure. We can get rid of this define now that TI is finding those
clks a different way.
Cc: Tero Kristo <t-kristo@ti.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Burton <paul.burton@mips.com>
Cc: James Hogan <jhogan@kernel.org>
Cc: <linux-mips@vger.kernel.org>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Kevin Hilman <khilman@baylibre.com>
Cc: <linux-pwm@vger.kernel.org>
Cc: <linux-amlogic@lists.infradead.org>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
-rw-r--r-- | arch/mips/alchemy/common/clock.c | 2 | ||||
-rw-r--r-- | drivers/clk/clk-composite.c | 2 | ||||
-rw-r--r-- | drivers/clk/clk-divider.c | 2 | ||||
-rw-r--r-- | drivers/clk/clk-fixed-factor.c | 2 | ||||
-rw-r--r-- | drivers/clk/clk-fixed-rate.c | 2 | ||||
-rw-r--r-- | drivers/clk/clk-fractional-divider.c | 2 | ||||
-rw-r--r-- | drivers/clk/clk-gate.c | 2 | ||||
-rw-r--r-- | drivers/clk/clk-gpio.c | 2 | ||||
-rw-r--r-- | drivers/clk/clk-mux.c | 2 | ||||
-rw-r--r-- | drivers/clk/clk-pwm.c | 2 | ||||
-rw-r--r-- | drivers/clk/clk.c | 1 | ||||
-rw-r--r-- | drivers/clk/mmp/clk-gate.c | 2 | ||||
-rw-r--r-- | drivers/pwm/pwm-meson.c | 2 | ||||
-rw-r--r-- | include/linux/clk-provider.h | 2 |
14 files changed, 13 insertions, 14 deletions
diff --git a/arch/mips/alchemy/common/clock.c b/arch/mips/alchemy/common/clock.c index d129475fd40d..a95a894aceaf 100644 --- a/arch/mips/alchemy/common/clock.c +++ b/arch/mips/alchemy/common/clock.c | |||
@@ -160,7 +160,7 @@ static struct clk __init *alchemy_clk_setup_cpu(const char *parent_name, | |||
160 | id.name = ALCHEMY_CPU_CLK; | 160 | id.name = ALCHEMY_CPU_CLK; |
161 | id.parent_names = &parent_name; | 161 | id.parent_names = &parent_name; |
162 | id.num_parents = 1; | 162 | id.num_parents = 1; |
163 | id.flags = CLK_IS_BASIC; | 163 | id.flags = 0; |
164 | id.ops = &alchemy_clkops_cpu; | 164 | id.ops = &alchemy_clkops_cpu; |
165 | h->init = &id; | 165 | h->init = &id; |
166 | 166 | ||
diff --git a/drivers/clk/clk-composite.c b/drivers/clk/clk-composite.c index 46604214bba0..b06038b8f658 100644 --- a/drivers/clk/clk-composite.c +++ b/drivers/clk/clk-composite.c | |||
@@ -218,7 +218,7 @@ struct clk_hw *clk_hw_register_composite(struct device *dev, const char *name, | |||
218 | return ERR_PTR(-ENOMEM); | 218 | return ERR_PTR(-ENOMEM); |
219 | 219 | ||
220 | init.name = name; | 220 | init.name = name; |
221 | init.flags = flags | CLK_IS_BASIC; | 221 | init.flags = flags; |
222 | init.parent_names = parent_names; | 222 | init.parent_names = parent_names; |
223 | init.num_parents = num_parents; | 223 | init.num_parents = num_parents; |
224 | hw = &composite->hw; | 224 | hw = &composite->hw; |
diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c index e5a17265cfaf..568e10a33ea4 100644 --- a/drivers/clk/clk-divider.c +++ b/drivers/clk/clk-divider.c | |||
@@ -475,7 +475,7 @@ static struct clk_hw *_register_divider(struct device *dev, const char *name, | |||
475 | init.ops = &clk_divider_ro_ops; | 475 | init.ops = &clk_divider_ro_ops; |
476 | else | 476 | else |
477 | init.ops = &clk_divider_ops; | 477 | init.ops = &clk_divider_ops; |
478 | init.flags = flags | CLK_IS_BASIC; | 478 | init.flags = flags; |
479 | init.parent_names = (parent_name ? &parent_name: NULL); | 479 | init.parent_names = (parent_name ? &parent_name: NULL); |
480 | init.num_parents = (parent_name ? 1 : 0); | 480 | init.num_parents = (parent_name ? 1 : 0); |
481 | 481 | ||
diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c index 241b3f8c61a9..8aac2d1b6fea 100644 --- a/drivers/clk/clk-fixed-factor.c +++ b/drivers/clk/clk-fixed-factor.c | |||
@@ -84,7 +84,7 @@ struct clk_hw *clk_hw_register_fixed_factor(struct device *dev, | |||
84 | 84 | ||
85 | init.name = name; | 85 | init.name = name; |
86 | init.ops = &clk_fixed_factor_ops; | 86 | init.ops = &clk_fixed_factor_ops; |
87 | init.flags = flags | CLK_IS_BASIC; | 87 | init.flags = flags; |
88 | init.parent_names = &parent_name; | 88 | init.parent_names = &parent_name; |
89 | init.num_parents = 1; | 89 | init.num_parents = 1; |
90 | 90 | ||
diff --git a/drivers/clk/clk-fixed-rate.c b/drivers/clk/clk-fixed-rate.c index 00ef4f5e53fe..a7e4aef7a376 100644 --- a/drivers/clk/clk-fixed-rate.c +++ b/drivers/clk/clk-fixed-rate.c | |||
@@ -68,7 +68,7 @@ struct clk_hw *clk_hw_register_fixed_rate_with_accuracy(struct device *dev, | |||
68 | 68 | ||
69 | init.name = name; | 69 | init.name = name; |
70 | init.ops = &clk_fixed_rate_ops; | 70 | init.ops = &clk_fixed_rate_ops; |
71 | init.flags = flags | CLK_IS_BASIC; | 71 | init.flags = flags; |
72 | init.parent_names = (parent_name ? &parent_name: NULL); | 72 | init.parent_names = (parent_name ? &parent_name: NULL); |
73 | init.num_parents = (parent_name ? 1 : 0); | 73 | init.num_parents = (parent_name ? 1 : 0); |
74 | 74 | ||
diff --git a/drivers/clk/clk-fractional-divider.c b/drivers/clk/clk-fractional-divider.c index fdfe2e423d15..aa45dd257fe3 100644 --- a/drivers/clk/clk-fractional-divider.c +++ b/drivers/clk/clk-fractional-divider.c | |||
@@ -151,7 +151,7 @@ struct clk_hw *clk_hw_register_fractional_divider(struct device *dev, | |||
151 | 151 | ||
152 | init.name = name; | 152 | init.name = name; |
153 | init.ops = &clk_fractional_divider_ops; | 153 | init.ops = &clk_fractional_divider_ops; |
154 | init.flags = flags | CLK_IS_BASIC; | 154 | init.flags = flags; |
155 | init.parent_names = parent_name ? &parent_name : NULL; | 155 | init.parent_names = parent_name ? &parent_name : NULL; |
156 | init.num_parents = parent_name ? 1 : 0; | 156 | init.num_parents = parent_name ? 1 : 0; |
157 | 157 | ||
diff --git a/drivers/clk/clk-gate.c b/drivers/clk/clk-gate.c index f05823cd9b21..f58a58d5d80a 100644 --- a/drivers/clk/clk-gate.c +++ b/drivers/clk/clk-gate.c | |||
@@ -142,7 +142,7 @@ struct clk_hw *clk_hw_register_gate(struct device *dev, const char *name, | |||
142 | 142 | ||
143 | init.name = name; | 143 | init.name = name; |
144 | init.ops = &clk_gate_ops; | 144 | init.ops = &clk_gate_ops; |
145 | init.flags = flags | CLK_IS_BASIC; | 145 | init.flags = flags; |
146 | init.parent_names = parent_name ? &parent_name : NULL; | 146 | init.parent_names = parent_name ? &parent_name : NULL; |
147 | init.num_parents = parent_name ? 1 : 0; | 147 | init.num_parents = parent_name ? 1 : 0; |
148 | 148 | ||
diff --git a/drivers/clk/clk-gpio.c b/drivers/clk/clk-gpio.c index c2f07f0d077c..9d930edd6516 100644 --- a/drivers/clk/clk-gpio.c +++ b/drivers/clk/clk-gpio.c | |||
@@ -137,7 +137,7 @@ static struct clk_hw *clk_register_gpio(struct device *dev, const char *name, | |||
137 | 137 | ||
138 | init.name = name; | 138 | init.name = name; |
139 | init.ops = clk_gpio_ops; | 139 | init.ops = clk_gpio_ops; |
140 | init.flags = flags | CLK_IS_BASIC; | 140 | init.flags = flags; |
141 | init.parent_names = parent_names; | 141 | init.parent_names = parent_names; |
142 | init.num_parents = num_parents; | 142 | init.num_parents = num_parents; |
143 | 143 | ||
diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c index 2ad2df2e8909..7d60d690b7f2 100644 --- a/drivers/clk/clk-mux.c +++ b/drivers/clk/clk-mux.c | |||
@@ -159,7 +159,7 @@ struct clk_hw *clk_hw_register_mux_table(struct device *dev, const char *name, | |||
159 | init.ops = &clk_mux_ro_ops; | 159 | init.ops = &clk_mux_ro_ops; |
160 | else | 160 | else |
161 | init.ops = &clk_mux_ops; | 161 | init.ops = &clk_mux_ops; |
162 | init.flags = flags | CLK_IS_BASIC; | 162 | init.flags = flags; |
163 | init.parent_names = parent_names; | 163 | init.parent_names = parent_names; |
164 | init.num_parents = num_parents; | 164 | init.num_parents = num_parents; |
165 | 165 | ||
diff --git a/drivers/clk/clk-pwm.c b/drivers/clk/clk-pwm.c index 8cb9d117fdbf..02b472a1f9b0 100644 --- a/drivers/clk/clk-pwm.c +++ b/drivers/clk/clk-pwm.c | |||
@@ -101,7 +101,7 @@ static int clk_pwm_probe(struct platform_device *pdev) | |||
101 | 101 | ||
102 | init.name = clk_name; | 102 | init.name = clk_name; |
103 | init.ops = &clk_pwm_ops; | 103 | init.ops = &clk_pwm_ops; |
104 | init.flags = CLK_IS_BASIC; | 104 | init.flags = 0; |
105 | init.num_parents = 0; | 105 | init.num_parents = 0; |
106 | 106 | ||
107 | clk_pwm->pwm = pwm; | 107 | clk_pwm->pwm = pwm; |
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 96053a96fe2f..7279573eefd5 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c | |||
@@ -2850,7 +2850,6 @@ static const struct { | |||
2850 | ENTRY(CLK_SET_PARENT_GATE), | 2850 | ENTRY(CLK_SET_PARENT_GATE), |
2851 | ENTRY(CLK_SET_RATE_PARENT), | 2851 | ENTRY(CLK_SET_RATE_PARENT), |
2852 | ENTRY(CLK_IGNORE_UNUSED), | 2852 | ENTRY(CLK_IGNORE_UNUSED), |
2853 | ENTRY(CLK_IS_BASIC), | ||
2854 | ENTRY(CLK_GET_RATE_NOCACHE), | 2853 | ENTRY(CLK_GET_RATE_NOCACHE), |
2855 | ENTRY(CLK_SET_RATE_NO_REPARENT), | 2854 | ENTRY(CLK_SET_RATE_NO_REPARENT), |
2856 | ENTRY(CLK_GET_ACCURACY_NOCACHE), | 2855 | ENTRY(CLK_GET_ACCURACY_NOCACHE), |
diff --git a/drivers/clk/mmp/clk-gate.c b/drivers/clk/mmp/clk-gate.c index 7355595c42e2..1755916ddef2 100644 --- a/drivers/clk/mmp/clk-gate.c +++ b/drivers/clk/mmp/clk-gate.c | |||
@@ -108,7 +108,7 @@ struct clk *mmp_clk_register_gate(struct device *dev, const char *name, | |||
108 | 108 | ||
109 | init.name = name; | 109 | init.name = name; |
110 | init.ops = &mmp_clk_gate_ops; | 110 | init.ops = &mmp_clk_gate_ops; |
111 | init.flags = flags | CLK_IS_BASIC; | 111 | init.flags = flags; |
112 | init.parent_names = (parent_name ? &parent_name : NULL); | 112 | init.parent_names = (parent_name ? &parent_name : NULL); |
113 | init.num_parents = (parent_name ? 1 : 0); | 113 | init.num_parents = (parent_name ? 1 : 0); |
114 | 114 | ||
diff --git a/drivers/pwm/pwm-meson.c b/drivers/pwm/pwm-meson.c index c1ed641b3e26..4ae5d774443e 100644 --- a/drivers/pwm/pwm-meson.c +++ b/drivers/pwm/pwm-meson.c | |||
@@ -470,7 +470,7 @@ static int meson_pwm_init_channels(struct meson_pwm *meson, | |||
470 | 470 | ||
471 | init.name = name; | 471 | init.name = name; |
472 | init.ops = &clk_mux_ops; | 472 | init.ops = &clk_mux_ops; |
473 | init.flags = CLK_IS_BASIC; | 473 | init.flags = 0; |
474 | init.parent_names = meson->data->parent_names; | 474 | init.parent_names = meson->data->parent_names; |
475 | init.num_parents = meson->data->num_parents; | 475 | init.num_parents = meson->data->num_parents; |
476 | 476 | ||
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index b7cf80a71293..9245a377295b 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h | |||
@@ -24,7 +24,7 @@ | |||
24 | #define CLK_SET_RATE_PARENT BIT(2) /* propagate rate change up one level */ | 24 | #define CLK_SET_RATE_PARENT BIT(2) /* propagate rate change up one level */ |
25 | #define CLK_IGNORE_UNUSED BIT(3) /* do not gate even if unused */ | 25 | #define CLK_IGNORE_UNUSED BIT(3) /* do not gate even if unused */ |
26 | /* unused */ | 26 | /* unused */ |
27 | #define CLK_IS_BASIC BIT(5) /* Basic clk, can't do a to_clk_foo() */ | 27 | /* unused */ |
28 | #define CLK_GET_RATE_NOCACHE BIT(6) /* do not use the cached clk rate */ | 28 | #define CLK_GET_RATE_NOCACHE BIT(6) /* do not use the cached clk rate */ |
29 | #define CLK_SET_RATE_NO_REPARENT BIT(7) /* don't re-parent on rate change */ | 29 | #define CLK_SET_RATE_NO_REPARENT BIT(7) /* don't re-parent on rate change */ |
30 | #define CLK_GET_ACCURACY_NOCACHE BIT(8) /* do not use the cached clk accuracy */ | 30 | #define CLK_GET_ACCURACY_NOCACHE BIT(8) /* do not use the cached clk accuracy */ |