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

stigge at antcom.de stigge at antcom.de
Thu Feb 2 14:19:47 EST 2012


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

Signed-off-by: Roland Stigge <stigge at antcom.de>
Acked-by: Wolfram Sang <w.sang at pengutronix.de>
Tested-by: Wolfram Sang <w.sang at pengutronix.de>

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--;



More information about the linux-arm-kernel mailing list