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>
Thu, 9 Feb 2012 23:55:50 +0000 (15:55 -0800)
commitf40a6818857e00c1d0ecec9af832f46a83f12f53
treed28695cae6ea9c343f6968c31ea3c61bad86f451
parent8998316c425ed2b36ca3b01a658f08a7d006a4f9
ARM: LPC32xx: clock.c: jiffies wrapping

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