From: Vaibhav Hiremath Date: Wed, 9 May 2012 17:07:05 +0000 (-0700) Subject: ARM: OMAP1: Add checks for possible error condition in timer_init X-Git-Tag: omap-cleanup-timer-for-v3.5~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=187999119d93f584209400b052cf092141a33650;p=pandora-kernel.git ARM: OMAP1: Add checks for possible error condition in timer_init On OMAP1, omap_32k_timer_init() function always returns "true", irrespective of whether error occurred while initializing 32k sync counter as a kernel clocksource or not and execution will never fallback to mpu_timer clocksource init code. This patch adds check for return value from function omap_init_clocksource_32k(), and fallback to omap_mpu_timer_init() in case of failure/error from omap_init_clocksource_32k(). Signed-off-by: Vaibhav Hiremath Acked-by: Kevin Hilman Tested-by: Kevin Hilman Cc: Paul Walmsley Cc: Benoit Cousson Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed