diff mbox

[U-Boot] board/ti/beagle/beagle.c: Fix build warnings

Message ID 1332925507-4393-1-git-send-email-agust@denx.de
State Accepted
Commit 3fbc6931a456b89294b5807e08df21b1a1387846
Delegated to: Tom Rini
Headers show

Commit Message

Anatolij Gustschin March 28, 2012, 9:05 a.m. UTC
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>
---
 board/ti/beagle/beagle.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Comments

Tom Rini March 28, 2012, 4:32 p.m. UTC | #1
On Wed, Mar 28, 2012 at 11:05:07AM +0200, Anatolij Gustschin wrote:

> 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>

Queued for u-boot-ti/master (Albert hasn't pushed his latest updates
yet), thanks!
diff mbox

Patch

diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c
index 114ab7e..8b07eef 100644
--- a/board/ti/beagle/beagle.c
+++ b/board/ti/beagle/beagle.c
@@ -254,7 +254,8 @@  void beagle_display_init(void)
 /*
  * Enable DVI power
  */
-static void beagle_dvi_pup() {
+static void beagle_dvi_pup(void)
+{
 	uchar val;
 
 	switch (get_board_revision()) {