ARM: tegra: clock: prevent accidental disables of cpu clock
commit1be3d0537516fa42825406b4bc1291b77ed62614
authorColin Cross <ccross@android.com>
Tue, 22 Feb 2011 00:44:07 +0000 (21 16:44 -0800)
committerColin Cross <ccross@android.com>
Tue, 22 Feb 2011 19:25:07 +0000 (22 11:25 -0800)
tree4ade740dd278fd5e213bad3774f0df3721f6110c
parent421186e71000c067c2687baeffde62954a80cdcc
ARM: tegra: clock: prevent accidental disables of cpu clock

Peripheral clocks that have no clock enable bit in the
enable registers have their clk_num set to 0.  Bit 0
in the clock enable registers is the CPU clock.
Prevent disables on these peripheral clocks from
accidentally disabling the CPU clock.

Signed-off-by: Colin Cross <ccross@android.com>
Acked-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-tegra/tegra2_clocks.c