ARM: OMAP2+: hwmod: use init-time function pointer for wait_target_ready
authorKevin Hilman <khilman@ti.com>
Mon, 18 Jun 2012 18:12:24 +0000 (12:12 -0600)
committerPaul Walmsley <paul@pwsan.com>
Mon, 18 Jun 2012 18:12:24 +0000 (12:12 -0600)
commit8f6aa8ee114fb52a425e247e27e271ee35d7d3b3
tree10724b6a72f97a9953508eb8e616963b042b5401
parentbaa2607f56f1589eb21c01fe16aa5f5c3f9dad31
ARM: OMAP2+: hwmod: use init-time function pointer for wait_target_ready

Rather than using cpu_is* checking at runtime, initialize an SoC specific
function pointer for wait_target_ready().

While here, downgrade the BUG() to a WARN_ON() so it gives a noisy
warning instead of causing a kernel panic.

Signed-off-by: Kevin Hilman <khilman@ti.com>
[paul@pwsan.com: convert to use soc_ops function pointers; add kerneldoc;
 move soc_ops functions to their own section in the code; integrated
 the _wait_target_ready() function with the OMAP2/OMAP4 variants;
 renamed the wait_module_ready field to wait_target_ready]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/omap_hwmod.c