瀏覽代碼

board/ti/beagle/beagle.c: Fix build warnings

Fix:
beagle.c:257:13: warning: function declaration isn't a prototype
[-Wstrict-prototypes]
beagle.c:257:13: warning: function declaration isn't a prototype
[-Wstrict-prototypes]

Also make beagle_dvi_pup() checkpatch clean, fix:
ERROR: open brace '{' following function declarations go on the
next line

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Tom Rini <trini@ti.com>
Anatolij Gustschin 13 年之前
父節點
當前提交
3fbc6931a4
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      board/ti/beagle/beagle.c

+ 2 - 1
board/ti/beagle/beagle.c

@@ -254,7 +254,8 @@ void beagle_display_init(void)
 /*
 /*
  * Enable DVI power
  * Enable DVI power
  */
  */
-static void beagle_dvi_pup() {
+static void beagle_dvi_pup(void)
+{
 	uchar val;
 	uchar val;
 
 
 	switch (get_board_revision()) {
 	switch (get_board_revision()) {