davinci: clock: Check CLK_PSC flag before disabling PSC
authorChaithrika U S <chaithrika@ti.com>
Tue, 15 Dec 2009 12:32:58 +0000 (18:02 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Thu, 4 Feb 2010 21:29:53 +0000 (13:29 -0800)
commit679f9218cac9e7d63ae3868c0c71b45b1ba5f766
treeba2d016f61656f2c0421eb3e8b1e83e955b50dea
parentad021ae8862209864dc8ebd3b7d3a55ce84b9ea2
davinci: clock: Check CLK_PSC flag before disabling PSC

Some modules do not have PSC to control their clocks.
The 'lpsc' field in the clk structure is 0 for such clocks.

In the clock disable function check for CLK PSC flag before
disabling the PSC. If this is not taken care of then it may
so happen that module controlled by LPSC 0 is erroneously disabled.

Signed-off-by: Chaithrika U S <chaithrika@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-davinci/clock.c