Skip to content

Commit

Permalink
ARM: LPC32xx: clock.c: warning fix
Browse files Browse the repository at this point in the history
This patch removes the debug warning on local_clk_disable() as done in Kevin
Wells' driver update

Signed-off-by: Roland Stigge <stigge@antcom.de>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Tested-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Kevin Wells <kevin.wells@nxp.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
  • Loading branch information
Roland Stigge authored and Olof Johansson committed Feb 9, 2012
1 parent 4ee1c57 commit 0cf0d81
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/arm/mach-lpc32xx/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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--;
Expand Down

0 comments on commit 0cf0d81

Please sign in to comment.