]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
omap2 clock: return -EINVAL if no clock enable code; fix dpll_ck enable
authorPaul Walmsley <paul@pwsan.com>
Thu, 2 Aug 2007 18:10:17 +0000 (12:10 -0600)
committerTony Lindgren <tony@atomide.com>
Fri, 10 Aug 2007 09:36:07 +0000 (02:36 -0700)
commitfc1c145e73eb5b4aa25208f58fc3a411984aba3d
treed92620101c6008410e59f62b704cc1b951c20894
parent59530ed80efb509b96b2344919a047245f7bb032
omap2 clock: return -EINVAL if no clock enable code; fix dpll_ck enable

If the clock framework can't figure out how to enable a clock, return
-EINVAL to indicate that the clock cannot be enabled.  Previously the
code returned 0, which indicated success.

Also fix the "clock.c: Enable for dpll_ck without enable code" boot
warning by marking dpll_ck as ALWAYS_ENABLED.  This is not technically
true, since the DPLL can be bypassed; but since we currently have no
software infrastructure to control it directly, ALWAYS_ENABLED is a
sufficient fiction for dpll_ck.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/clock.c
arch/arm/mach-omap2/clock.h