ARM: LPC32xx: clock.c: Fix mutex lock issues
authorRoland Stigge <stigge@antcom.de>
Wed, 8 Feb 2012 20:41:05 +0000 (21:41 +0100)
committerOlof Johansson <olof@lixom.net>
Thu, 9 Feb 2012 23:55:49 +0000 (15:55 -0800)
commitb84518625183e87c6930b11db0592be786181128
tree7d6a2351696d1ca2b5622bebda64d6bb84f2fe76
parent0cf0d815ba0d09281c5671b82a83c4220a606dc4
ARM: LPC32xx: clock.c: Fix mutex lock issues

This patch fixes the mutex issue in clock.c, as done in Kevin Wells' original
driver update:

In some cases, the clock drivers could grab a mutex twice in an improper
context. This patch changes the mutex mechanism to a simple irq lock/unlock
mechanism and removes un-needed locks from some functions.

(See also git.lpclinux.com)

Signed-off-by: Roland Stigge <stigge@antcom.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>
arch/arm/mach-lpc32xx/clock.c