ARM: LPC32xx: clock.c: jiffies wrapping
authorRoland Stigge <stigge@antcom.de>
Wed, 8 Feb 2012 20:41:02 +0000 (21:41 +0100)
committerOlof Johansson <olof@lixom.net>
Fri, 10 Feb 2012 00:00:34 +0000 (16:00 -0800)
This patch fixes the jiffies wrapping bug in clock.c.

It corrects the timeout computation based on jiffies, uses time_before() for
correct wrapping handling and replaces a binary "&" which should really be a
logical "&&" in a truth expression.

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>
arch/arm/mach-lpc32xx/clock.c

Simple merge