diff options
author | Rajendra Nayak <rnayak@ti.com> | 2012-06-01 04:32:47 -0400 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2012-07-11 18:36:43 -0400 |
commit | f7d8caadfd2813cbada82ce9041b13c38e8e5282 (patch) | |
tree | 0daf2b7e7d16765c5d7b37afa935776e7358c7a3 /drivers/clk | |
parent | 357c3f0a6c7613f7230fcaf1eb16190ed2a4b0af (diff) |
clk: Add CLK_IS_BASIC flag to identify basic clocks
Most platforms end up using a mix of basic clock types and
some which use clk_hw_foo struct for filling in custom platform
information when the clocks don't fit into basic types supported.
In platform code, its useful to know if a clock is using a basic
type or clk_hw_foo, which helps platforms know if they can
safely use to_clk_hw_foo to derive the clk_hw_foo pointer from
clk_hw.
Mark all basic clocks with a CLK_IS_BASIC flag.
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk')
-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-gate.c | 2 | ||||
-rw-r--r-- | drivers/clk/clk-mux.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c index 02a4da98176b..a9204c69148d 100644 --- a/drivers/clk/clk-divider.c +++ b/drivers/clk/clk-divider.c | |||
@@ -253,7 +253,7 @@ static struct clk *_register_divider(struct device *dev, const char *name, | |||
253 | 253 | ||
254 | init.name = name; | 254 | init.name = name; |
255 | init.ops = &clk_divider_ops; | 255 | init.ops = &clk_divider_ops; |
256 | init.flags = flags; | 256 | init.flags = flags | CLK_IS_BASIC; |
257 | init.parent_names = (parent_name ? &parent_name: NULL); | 257 | init.parent_names = (parent_name ? &parent_name: NULL); |
258 | init.num_parents = (parent_name ? 1 : 0); | 258 | init.num_parents = (parent_name ? 1 : 0); |
259 | 259 | ||
diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c index c8c003e217ad..a4899855c0f6 100644 --- a/drivers/clk/clk-fixed-factor.c +++ b/drivers/clk/clk-fixed-factor.c | |||
@@ -82,7 +82,7 @@ struct clk *clk_register_fixed_factor(struct device *dev, const char *name, | |||
82 | 82 | ||
83 | init.name = name; | 83 | init.name = name; |
84 | init.ops = &clk_fixed_factor_ops; | 84 | init.ops = &clk_fixed_factor_ops; |
85 | init.flags = flags; | 85 | init.flags = flags | CLK_IS_BASIC; |
86 | init.parent_names = &parent_name; | 86 | init.parent_names = &parent_name; |
87 | init.num_parents = 1; | 87 | init.num_parents = 1; |
88 | 88 | ||
diff --git a/drivers/clk/clk-fixed-rate.c b/drivers/clk/clk-fixed-rate.c index cbd246229786..7e1464569727 100644 --- a/drivers/clk/clk-fixed-rate.c +++ b/drivers/clk/clk-fixed-rate.c | |||
@@ -63,7 +63,7 @@ struct clk *clk_register_fixed_rate(struct device *dev, const char *name, | |||
63 | 63 | ||
64 | init.name = name; | 64 | init.name = name; |
65 | init.ops = &clk_fixed_rate_ops; | 65 | init.ops = &clk_fixed_rate_ops; |
66 | init.flags = flags; | 66 | init.flags = flags | CLK_IS_BASIC; |
67 | init.parent_names = (parent_name ? &parent_name: NULL); | 67 | init.parent_names = (parent_name ? &parent_name: NULL); |
68 | init.num_parents = (parent_name ? 1 : 0); | 68 | init.num_parents = (parent_name ? 1 : 0); |
69 | 69 | ||
diff --git a/drivers/clk/clk-gate.c b/drivers/clk/clk-gate.c index 578465e04be6..15114febfd92 100644 --- a/drivers/clk/clk-gate.c +++ b/drivers/clk/clk-gate.c | |||
@@ -130,7 +130,7 @@ struct clk *clk_register_gate(struct device *dev, const char *name, | |||
130 | 130 | ||
131 | init.name = name; | 131 | init.name = name; |
132 | init.ops = &clk_gate_ops; | 132 | init.ops = &clk_gate_ops; |
133 | init.flags = flags; | 133 | init.flags = flags | CLK_IS_BASIC; |
134 | init.parent_names = (parent_name ? &parent_name: NULL); | 134 | init.parent_names = (parent_name ? &parent_name: NULL); |
135 | init.num_parents = (parent_name ? 1 : 0); | 135 | init.num_parents = (parent_name ? 1 : 0); |
136 | 136 | ||
diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c index fd36a8ea73d9..508c032edce4 100644 --- a/drivers/clk/clk-mux.c +++ b/drivers/clk/clk-mux.c | |||
@@ -106,7 +106,7 @@ struct clk *clk_register_mux(struct device *dev, const char *name, | |||
106 | 106 | ||
107 | init.name = name; | 107 | init.name = name; |
108 | init.ops = &clk_mux_ops; | 108 | init.ops = &clk_mux_ops; |
109 | init.flags = flags; | 109 | init.flags = flags | CLK_IS_BASIC; |
110 | init.parent_names = parent_names; | 110 | init.parent_names = parent_names; |
111 | init.num_parents = num_parents; | 111 | init.num_parents = num_parents; |
112 | 112 | ||