diff options
author | Kevin Hilman <khilman@deeprootsystems.com> | 2010-01-11 11:22:23 -0500 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2010-02-04 16:30:09 -0500 |
commit | 08aca087f263e8089420b2723fe0c1a0cbe5de0c (patch) | |
tree | e63f7d29d5f06e3eb4c1cc29f790b174105b8afb /arch/arm/mach-davinci/da850.c | |
parent | e89861e9b44fcd606cdade6230eb0037ad5911bf (diff) |
davinci: clkdev cleanup: remove clk_lookup wrapper, use clkdev_add_table()
Remove unneeded 'struct davinci_clk' wrapper around 'struct clk_lookup'
and use clkdev_add_table() to add the list of clocks in one go.
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/da850.c')
-rw-r--r-- | arch/arm/mach-davinci/da850.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index b9a7b3bc36b2..d0fd7566712a 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c | |||
@@ -335,7 +335,7 @@ static struct clk aemif_clk = { | |||
335 | .flags = ALWAYS_ENABLED, | 335 | .flags = ALWAYS_ENABLED, |
336 | }; | 336 | }; |
337 | 337 | ||
338 | static struct davinci_clk da850_clks[] = { | 338 | static struct clk_lookup da850_clks[] = { |
339 | CLK(NULL, "ref", &ref_clk), | 339 | CLK(NULL, "ref", &ref_clk), |
340 | CLK(NULL, "pll0", &pll0_clk), | 340 | CLK(NULL, "pll0", &pll0_clk), |
341 | CLK(NULL, "pll0_aux", &pll0_aux_clk), | 341 | CLK(NULL, "pll0_aux", &pll0_aux_clk), |
@@ -834,12 +834,12 @@ static struct davinci_timer_info da850_timer_info = { | |||
834 | static void da850_set_async3_src(int pllnum) | 834 | static void da850_set_async3_src(int pllnum) |
835 | { | 835 | { |
836 | struct clk *clk, *newparent = pllnum ? &pll1_sysclk2 : &pll0_sysclk2; | 836 | struct clk *clk, *newparent = pllnum ? &pll1_sysclk2 : &pll0_sysclk2; |
837 | struct davinci_clk *c; | 837 | struct clk_lookup *c; |
838 | unsigned int v; | 838 | unsigned int v; |
839 | int ret; | 839 | int ret; |
840 | 840 | ||
841 | for (c = da850_clks; c->lk.clk; c++) { | 841 | for (c = da850_clks; c->clk; c++) { |
842 | clk = c->lk.clk; | 842 | clk = c->clk; |
843 | if (clk->flags & DA850_CLK_ASYNC3) { | 843 | if (clk->flags & DA850_CLK_ASYNC3) { |
844 | ret = clk_set_parent(clk, newparent); | 844 | ret = clk_set_parent(clk, newparent); |
845 | WARN(ret, "DA850: unable to re-parent clock %s", | 845 | WARN(ret, "DA850: unable to re-parent clock %s", |