* [PATCH 2/3] plat-nomadik: handle clocking properly
@ 2012-01-11 9:04 Linus Walleij
2012-01-11 9:41 ` Alessandro Rubini
0 siblings, 1 reply; 2+ messages in thread
From: Linus Walleij @ 2012-01-11 9:04 UTC (permalink / raw)
To: linux-arm-kernel
From: Linus Walleij <linus.walleij@linaro.org>
clk_prepare() was missing from the Nomadik MTU driver, also handle
errors on prepare and enable in the simplest way possible, by
bugging out - we cannot start the system without time anyway.
Cc: Alessandro Rubini <rubini@unipv.it>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
arch/arm/plat-nomadik/timer.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/plat-nomadik/timer.c b/arch/arm/plat-nomadik/timer.c
index 46f50f2..954a862 100644
--- a/arch/arm/plat-nomadik/timer.c
+++ b/arch/arm/plat-nomadik/timer.c
@@ -190,8 +190,8 @@ void __init nmdk_timer_init(void __iomem *base)
mtu_base = base;
clk0 = clk_get_sys("mtu0", NULL);
BUG_ON(IS_ERR(clk0));
-
- clk_enable(clk0);
+ BUG_ON(clk_prepare(clk0) < 0);
+ BUG_ON(clk_enable(clk0) < 0);
/*
* Tick rate is 2.4MHz for Nomadik and 2.4Mhz, 100MHz or 133 MHz
--
1.7.8
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 2/3] plat-nomadik: handle clocking properly
2012-01-11 9:04 [PATCH 2/3] plat-nomadik: handle clocking properly Linus Walleij
@ 2012-01-11 9:41 ` Alessandro Rubini
0 siblings, 0 replies; 2+ messages in thread
From: Alessandro Rubini @ 2012-01-11 9:41 UTC (permalink / raw)
To: linux-arm-kernel
> clk_prepare() was missing from the Nomadik MTU driver, also handle
> errors on prepare and enable in the simplest way possible, by
> bugging out - we cannot start the system without time anyway.
>
> Cc: Alessandro Rubini <rubini@unipv.it>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Alessandro Rubini <rubini@unipv.it>
/alessandro
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-11 9:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-11 9:04 [PATCH 2/3] plat-nomadik: handle clocking properly Linus Walleij
2012-01-11 9:41 ` Alessandro Rubini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.