diff options
author | Rajendra Nayak <rnayak@ti.com> | 2012-06-01 10:32:47 +0200 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2012-07-12 00:36:43 +0200 |
commit | f7d8caadfd2813cbada82ce9041b13c38e8e5282 (patch) | |
tree | 0daf2b7e7d16765c5d7b37afa935776e7358c7a3 /drivers/clk/clk-fixed-factor.c | |
parent | clk: Add support for rate table based dividers (diff) | |
download | linux-f7d8caadfd2813cbada82ce9041b13c38e8e5282.tar.xz linux-f7d8caadfd2813cbada82ce9041b13c38e8e5282.zip |
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/clk-fixed-factor.c')
-rw-r--r-- | drivers/clk/clk-fixed-factor.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, init.name = name; init.ops = &clk_fixed_factor_ops; - init.flags = flags; + init.flags = flags | CLK_IS_BASIC; init.parent_names = &parent_name; init.num_parents = 1; |