From: Kevin Hilman Date: Mon, 18 Jun 2012 18:12:24 +0000 (-0600) Subject: ARM: OMAP2+: hwmod: use init-time function pointer for wait_target_ready X-Git-Tag: omap-cleanup-for-v3.6^2^2^3~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f6aa8ee114fb52a425e247e27e271ee35d7d3b3;p=pandora-kernel.git 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 [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 --- Reading git-diff-tree failed