Vaibhav Hiremath 187999119d 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 <hvaibhav@ti.com>
Acked-by: Kevin Hilman <khilman@ti.com>
Tested-by: Kevin Hilman <khilman@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
2012-05-09 10:07:05 -07:00
..
2012-04-05 11:29:55 -07:00
2012-03-29 18:02:10 -07:00
2012-03-29 18:02:10 -07:00
2012-03-29 18:02:10 -07:00
2012-03-29 18:02:10 -07:00
2012-03-29 18:02:10 -07:00
2012-03-29 18:02:10 -07:00
2012-03-06 21:34:45 -06:00
2012-03-29 18:02:10 -07:00
2012-03-29 18:02:10 -07:00
2012-03-29 18:02:10 -07:00
2012-03-29 18:02:10 -07:00
2012-03-29 18:02:10 -07:00
2012-03-30 17:31:56 -07:00
2012-03-13 21:25:21 -05:00
2012-03-29 18:02:10 -07:00
2012-03-29 18:02:10 -07:00
2012-03-29 18:02:10 -07:00
2012-03-29 18:02:10 -07:00
2012-04-05 11:29:55 -07:00
2012-03-29 18:02:10 -07:00
2012-03-29 18:02:10 -07:00
2012-03-29 18:02:10 -07:00
2012-03-29 18:02:10 -07:00
2012-03-30 17:31:56 -07:00
2012-03-29 21:30:28 -07:00
2012-03-30 17:31:56 -07:00
2012-03-29 18:02:10 -07:00
2012-03-28 18:30:01 +01:00
2011-12-23 22:58:10 +00:00
2012-03-28 18:30:01 +01:00
2012-04-05 11:29:55 -07:00