at91: fixed plla calc when no USB support is active
authorDaniel Gorsulowski <Daniel.Gorsulowski@esd.eu>
Thu, 23 Apr 2009 13:37:16 +0000 (15:37 +0200)
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Wed, 29 Apr 2009 19:42:34 +0000 (21:42 +0200)
Signed-off-by: Daniel Gorsulowski <Daniel.Gorsulowski@esd.eu>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
cpu/arm926ejs/at91/clock.c

index 31e53b30dd3ab73302265054e3fa4cf498e6a8e9..f776f70b1151a095785cf920de78b6cebda39a87 100644 (file)
@@ -126,6 +126,7 @@ static unsigned at91_pll_calc(unsigned main_freq, unsigned out_freq)
 fail:
        return 0;
 }
+#endif
 
 static u32 at91_pll_rate(u32 freq, u32 reg)
 {
@@ -141,7 +142,6 @@ static u32 at91_pll_rate(u32 freq, u32 reg)
 
        return freq;
 }
-#endif
 
 int at91_clock_init(unsigned long main_clock)
 {