[AVR32] Don't enable clocks with no users
authorHaavard Skinnemoen <hskinnemoen@atmel.com>
Wed, 14 Mar 2007 12:23:44 +0000 (13:23 +0100)
committerHaavard Skinnemoen <hskinnemoen@atmel.com>
Fri, 27 Apr 2007 11:44:13 +0000 (13:44 +0200)
commit188ff65d49dadf7b0e9b6718abc3fe98a5098711
tree29c930e7609d441f543baade2ddac70665d7bf54
parent19b7ce8bad718a2850ea19aeb7383f1728596c24
[AVR32] Don't enable clocks with no users

Bring the code that sets the initial PM clock masks in line with the
comment preceding it by only enabling clocks that have users != 0.
Fix SM clock definition and avr32_hpt_init() so that the SM and TC0
clocks keep ticking.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
arch/avr32/mach-at32ap/at32ap7000.c
arch/avr32/mach-at32ap/time-tc.c