瀏覽代碼

blackfin: fixing warning by including proper headers

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Sonic Zhang 11 年之前
父節點
當前提交
31d5d4e056
共有 3 個文件被更改,包括 6 次插入1 次删除
  1. 1 0
      arch/blackfin/lib/board.c
  2. 4 1
      arch/blackfin/lib/clocks.c
  3. 1 0
      board/bf609-ezkit/bf609-ezkit.c

+ 1 - 0
arch/blackfin/lib/board.c

@@ -19,6 +19,7 @@
 #include <net.h>
 #include <status_led.h>
 #include <version.h>
+#include <watchdog.h>
 
 #include <asm/cplb.h>
 #include <asm/mach-common/bits/mpu.h>

+ 4 - 1
arch/blackfin/lib/clocks.c

@@ -36,7 +36,10 @@ u_long get_vco(void)
 u_long get_cclk(void)
 {
 	static u_long cached_cclk_pll_div, cached_cclk;
-	u_long div, csel, ssel;
+	u_long div, csel;
+#ifndef CGU_DIV
+	u_long ssel;
+#endif
 
 	if (pll_is_bypassed())
 		return CONFIG_CLKIN_HZ;

+ 1 - 0
board/bf609-ezkit/bf609-ezkit.c

@@ -10,6 +10,7 @@
 #include <netdev.h>
 #include <asm/blackfin.h>
 #include <asm/io.h>
+#include <asm/sdh.h>
 #include <asm/portmux.h>
 #include "soft_switch.h"