davinci: PSC: Clear bits in MDCTL reg before setting new bits
authorMark A. Greer <mgreer@mvista.com>
Fri, 27 Mar 2009 02:33:21 +0000 (19:33 -0700)
committerKevin Hilman <khilman@deeprootsystems.com>
Mon, 27 Apr 2009 16:49:43 +0000 (09:49 -0700)
commitfe277d9bbba9c2851ec11edcd5701f82e034ddd4
tree7a326816eed0cb4653ff90f48ad154b63f21e654
parent474dad54baee8f8abe63ac334357a37021147701
davinci: PSC: Clear bits in MDCTL reg before setting new bits

Clear any set bits in the 'NEXT' field of the MDCTL register in the
Power and Sleep Controller (PSC) before setting any new bits.
This also allows some minor cleanup by removing some no longer
needed lines of code.

Signed-off-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-davinci/psc.c