Thread (9 messages) 9 messages, 2 authors, 2012-02-10

[PATCH v4 6/7] ARM: LPC32xx: clock.c: warning fix

STALE5349d REVIEWED: 3 (0M)

From: Roland Stigge <hidden>
Date: 2012-02-08 20:41:04
Subsystem: arm port, arm/lpc32xx soc support, the rest · Maintainers: Russell King, Vladimir Zapolskiy, Piotr Wojtaszczyk, Linus Torvalds

3 review trailers.

This patch removes the debug warning on local_clk_disable() as done in Kevin
Wells' driver update

Signed-off-by: Roland Stigge <redacted>
Acked-by: Wolfram Sang <redacted>
Tested-by: Wolfram Sang <redacted>
Acked-by: Kevin Wells <redacted>
diff --git a/arch/arm/mach-lpc32xx/clock.c b/arch/arm/mach-lpc32xx/clock.c
index d527288..0606a63 100644
--- a/arch/arm/mach-lpc32xx/clock.c
+++ b/arch/arm/mach-lpc32xx/clock.c
@@ -904,8 +904,6 @@ static inline void clk_unlock(void)
 
 static void local_clk_disable(struct clk *clk)
 {
-	WARN_ON(clk->usecount == 0);
-
 	/* Don't attempt to disable clock if it has no users */
 	if (clk->usecount > 0) {
 		clk->usecount--;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help