diff options
author | Paul Walmsley <paul@pwsan.com> | 2012-09-23 19:27:43 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2012-09-23 19:27:43 -0400 |
commit | 4fb85d35bcec842e0f20437aea277157973aa45f (patch) | |
tree | d3b865af2f4066f68828806b231e4bb5b4de9ec8 /arch/arm/mach-omap2/clock.c | |
parent | 1e2ee2a60df5c3ab74dd1c9155fb01b5bc6f807d (diff) | |
parent | a86c0b9867940bd0ba78f109686079b4051a463d (diff) |
Merge branch 'clock_devel_3.7' into hwmod_prcm_clock_a_3.7
Conflicts:
arch/arm/mach-omap2/clkt34xx_dpll3m2.c
arch/arm/mach-omap2/clkt_clksel.c
arch/arm/mach-omap2/clock.c
Diffstat (limited to 'arch/arm/mach-omap2/clock.c')
-rw-r--r-- | arch/arm/mach-omap2/clock.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c index e97f98ffe8b2..961ac8f7e13d 100644 --- a/arch/arm/mach-omap2/clock.c +++ b/arch/arm/mach-omap2/clock.c | |||
@@ -78,7 +78,7 @@ static void _omap2_module_wait_ready(struct clk *clk) | |||
78 | clk->ops->find_idlest(clk, &idlest_reg, &idlest_bit, &idlest_val); | 78 | clk->ops->find_idlest(clk, &idlest_reg, &idlest_bit, &idlest_val); |
79 | 79 | ||
80 | omap2_cm_wait_idlest(idlest_reg, (1 << idlest_bit), idlest_val, | 80 | omap2_cm_wait_idlest(idlest_reg, (1 << idlest_bit), idlest_val, |
81 | clk->name); | 81 | __clk_get_name(clk)); |
82 | } | 82 | } |
83 | 83 | ||
84 | /* Public functions */ | 84 | /* Public functions */ |
@@ -94,18 +94,21 @@ static void _omap2_module_wait_ready(struct clk *clk) | |||
94 | void omap2_init_clk_clkdm(struct clk *clk) | 94 | void omap2_init_clk_clkdm(struct clk *clk) |
95 | { | 95 | { |
96 | struct clockdomain *clkdm; | 96 | struct clockdomain *clkdm; |
97 | const char *clk_name; | ||
97 | 98 | ||
98 | if (!clk->clkdm_name) | 99 | if (!clk->clkdm_name) |
99 | return; | 100 | return; |
100 | 101 | ||
102 | clk_name = __clk_get_name(clk); | ||
103 | |||
101 | clkdm = clkdm_lookup(clk->clkdm_name); | 104 | clkdm = clkdm_lookup(clk->clkdm_name); |
102 | if (clkdm) { | 105 | if (clkdm) { |
103 | pr_debug("clock: associated clk %s to clkdm %s\n", | 106 | pr_debug("clock: associated clk %s to clkdm %s\n", |
104 | clk->name, clk->clkdm_name); | 107 | clk_name, clk->clkdm_name); |
105 | clk->clkdm = clkdm; | 108 | clk->clkdm = clkdm; |
106 | } else { | 109 | } else { |
107 | pr_debug("clock: could not associate clk %s to clkdm %s\n", | 110 | pr_debug("clock: could not associate clk %s to clkdm %s\n", |
108 | clk->name, clk->clkdm_name); | 111 | clk_name, clk->clkdm_name); |
109 | } | 112 | } |
110 | } | 113 | } |
111 | 114 | ||