ARM: SAMSUNG: use clk_prepare_enable in samsung-time

A patch from »ARM: S3C24XX: Convert S3C2416 to common clock framework« in state Mainline for linux-kernel

From: Heiko Stuebner <heiko@...> Date: Mon, 11 Mar 2013 23:57:38 +0100

Commit-Message

The common clock framework expects clocks to be prepared before they are enabled. Signed-off-by: Heiko Stuebner <heiko@...>

Patch-Comment

arch/arm/plat-samsung/samsung-time.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)

Statistics

  • 3 lines added
  • 3 lines removed

Changes

--------------------- arch/arm/plat-samsung/samsung-time.c ---------------------
index f899cbc..6ebb851 100644
@@ -355,7 +355,7 @@ static void __init samsung_timer_resources(void)
if (IS_ERR(timerclk))
panic("failed to get timers clock for timer");
- clk_enable(timerclk);
+ clk_prepare_enable(timerclk);
sprintf(devname, "s3c24xx-pwm.%lu", event_id);
s3c_device_timer[event_id].id = event_id;
@@ -369,7 +369,7 @@ static void __init samsung_timer_resources(void)
if (IS_ERR(tdiv_event))
panic("failed to get pwm-tdiv clock for event timer");
- clk_enable(tin_event);
+ clk_prepare_enable(tin_event);
sprintf(devname, "s3c24xx-pwm.%lu", source_id);
s3c_device_timer[source_id].id = source_id;
@@ -383,7 +383,7 @@ static void __init samsung_timer_resources(void)
if (IS_ERR(tdiv_source))
panic("failed to get pwm-tdiv clock for source timer");
- clk_enable(tin_source);
+ clk_prepare_enable(tin_source);
}
void __init samsung_timer_init(void)
 
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...