]> git.sur5r.net Git - u-boot/blobdiff - cpu/mcf532x/speed.c
NAND: Fix compilation warning and small coding style issue
[u-boot] / cpu / mcf532x / speed.c
index cf72609b42ffde371ea5a2b05ab7de90df4400fc..001b9f42d64f3bf2e6f8fd03e30d0e914b1ca8f6 100644 (file)
@@ -30,6 +30,8 @@
 
 #include <asm/immap.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 /* PLL min/max specifications */
 #define MAX_FVCO       500000  /* KHz */
 #define MAX_FSYS       80000   /* KHz */
@@ -208,8 +210,6 @@ int clock_pll(int fsys, int flags)
  */
 int get_clocks(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        gd->bus_clk = clock_pll(CFG_CLK / 1000, 0) * 1000;
        gd->cpu_clk = (gd->bus_clk * 3);
        return (0);