[ARM] tegra: clock: Refcount periph clock enables
authorColin Cross <ccross@android.com>
Thu, 21 Oct 2010 02:19:58 +0000 (19:19 -0700)
committerColin Cross <ccross@android.com>
Mon, 25 Oct 2010 21:57:42 +0000 (14:57 -0700)
commitd86613c6494b4f2e237f031a46385d83a9c0f4cd
tree75c10040786d3b7d8aa60eaa5e963a262872bc94
parente99be0bd2363b2c6bbda74d916a01bcc67f0c065
[ARM] tegra: clock: Refcount periph clock enables

Some peripheral clocks share enable bits.  Refcount the enables so
that calling clk_disable on one clock will not turn off another
clock.

Change-Id: Iefb015bc83cac77b3faef8db86cfc42b25c0b6ae
Signed-off-by: Colin Cross <ccross@android.com>
arch/arm/mach-tegra/tegra2_clocks.c