diff options
author | Tony Lindgren <tony@atomide.com> | 2015-05-11 16:18:19 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2015-05-11 16:18:19 -0400 |
commit | b0897972edfa42b4af5c3189b2b7a7fac5867828 (patch) | |
tree | 11501ca06704068c543f0ef96ea9e4aa31e487ce /arch/arm/mach-omap2 | |
parent | e7309c2673a389a495fcfad70376d3bae8b9bc89 (diff) |
ARM: OMAP2+: Remove bogus struct clk comparison for timer clock
With recent changes to use determine_rate, the comparison of two
clocks won't work without clk_is_match that does __clk_get_hw
on the clocks first.
As we've been unconditionally already calling clk_set_parent
already because of the bogus comparison, let's just remove the
check as suggested by Stephen Boyd <sboyd@codeaurora.org>.
Cc: Michael Turquette <mturquette@linaro.org>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Tero Kristo <t-kristo@ti.com>
Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Acked-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/timer.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c index cef67af9e9b8..cac46d852da1 100644 --- a/arch/arm/mach-omap2/timer.c +++ b/arch/arm/mach-omap2/timer.c | |||
@@ -298,14 +298,11 @@ static int __init omap_dm_timer_init_one(struct omap_dm_timer *timer, | |||
298 | if (IS_ERR(src)) | 298 | if (IS_ERR(src)) |
299 | return PTR_ERR(src); | 299 | return PTR_ERR(src); |
300 | 300 | ||
301 | if (clk_get_parent(timer->fclk) != src) { | 301 | r = clk_set_parent(timer->fclk, src); |
302 | r = clk_set_parent(timer->fclk, src); | 302 | if (r < 0) { |
303 | if (r < 0) { | 303 | pr_warn("%s: %s cannot set source\n", __func__, oh->name); |
304 | pr_warn("%s: %s cannot set source\n", __func__, | 304 | clk_put(src); |
305 | oh->name); | 305 | return r; |
306 | clk_put(src); | ||
307 | return r; | ||
308 | } | ||
309 | } | 306 | } |
310 | 307 | ||
311 | clk_put(src); | 308 | clk_put(src); |