Thread (17 messages) 17 messages, 3 authors, 2012-02-02

[PATCH v2 5/7] LPC32xx: clock.c: warning fix

From: Wolfram Sang <hidden>
Date: 2012-01-31 10:27:03
Also in: lkml

On Mon, Jan 30, 2012 at 05:02:04PM +0100, Roland Stigge wrote:
This patch removes the debug warning on local_clk_disable() as done in Kevin
Wells' driver update

Signed-off-by: Roland Stigge <redacted>
Maybe this can be folded with 7/7? Otherwise

Acked-by: Wolfram Sang <redacted>
Tested-by: Wolfram Sang <redacted>
quoted hunk ↗ jump to hunk
diff --git a/arch/arm/mach-lpc32xx/clock.c b/arch/arm/mach-lpc32xx/clock.c
index 229bec5..01e9aba 100644
--- a/arch/arm/mach-lpc32xx/clock.c
+++ b/arch/arm/mach-lpc32xx/clock.c
@@ -903,8 +903,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--;
-- 
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120131/321eaa5d/attachment-0001.sig>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help