[ARM] omap: eliminate unnecessary conditionals in omap2_clk_wait_ready
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Tue, 4 Nov 2008 18:59:32 +0000 (18:59 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 8 Feb 2009 11:38:40 +0000 (11:38 +0000)
commitbc51da4ee46d481dc3fbc57ec407594b80e92705
tree35f3ad987f9c655127bd449a703b1222e6209484
parentb36ee724208358bd892ad279efce629740517149
[ARM] omap: eliminate unnecessary conditionals in omap2_clk_wait_ready

Rather than employing run-time tests in omap2_clk_wait_ready() to
decide whether we need to wait for the clock to become ready, we
can set the .ops appropriately.

This change deals with the OMAP24xx and OMAP34xx conditionals only.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-omap2/clock.c
arch/arm/mach-omap2/clock.h
arch/arm/mach-omap2/clock24xx.h
arch/arm/mach-omap2/clock34xx.h