]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
OMAP1 clock: convert test in disable_unused() to use ENABLE_ON_INIT
authorPaul Walmsley <paul@pwsan.com>
Tue, 8 Dec 2009 23:29:37 +0000 (16:29 -0700)
committerpaul <paul@twilight.(none)>
Sat, 12 Dec 2009 00:00:40 +0000 (17:00 -0700)
commit6f62b58dd4e697a23a308f5b77781394949d333e
treed044429e3655732e47bd3458b95ee8bc1c220929
parentd8a944582da1a4d29a1487ff7f435643505a12a0
OMAP1 clock: convert test in disable_unused() to use ENABLE_ON_INIT

mach-omap1/clock.c:omap1_clk_disable_unused() contains a test that
assumes that the clock structures are available in the file's
namespace.  After a following patch, this will no longer be the case.
So we need to reimplement that test.  It turns out that we already
have a facility in the clock framework to handle this case - the
ENABLE_ON_INIT flag - used on OMAP2/3.  Remove the offending test and
mark the clocks that it was intended to catch as ENABLE_ON_INIT.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap1/clock.c
arch/arm/mach-omap1/clock.h