[U-Boot] [PATCH] OMAP3 Overo: Fix ethernet related warnings

Dirk Behme dirk.behme at googlemail.com
Sun Sep 13 10:40:43 CEST 2009


Fix warning

'setup_net_chip' declared 'static' but never defined

with CONFIG_OMAP3_OVERO_TOBI disabled and

implicit declaration of function 'smc911x_initialize'

with CONFIG_OMAP3_OVERO_TOBI enabled.

Signed-off-by: Dirk Behme <dirk.behme at googlemail.com>

---

Patch against recent u-boot-ti git f4f92c81835ccc43f74925737dfd478edb0182f2
"TI: OMAP3: Overo Tobi ethernet support"

Compile tested only ./MAKEALL omap3_overo with and without
CONFIG_OMAP3_OVERO_TOBI enabled.

 board/overo/overo.c |    1 +
 board/overo/overo.h |    2 ++
 2 files changed, 3 insertions(+)

Index: u-boot-ti/board/overo/overo.h
===================================================================
--- u-boot-ti.orig/board/overo/overo.h
+++ u-boot-ti/board/overo/overo.h
@@ -33,7 +33,9 @@ const omap3_sysinfo sysinfo = {
 #endif
 };
 
+#if defined(CONFIG_OMAP3_OVERO_TOBI)
 static void setup_net_chip(void);
+#endif
 
 /*
  * IEN  - Input Enable
Index: u-boot-ti/board/overo/overo.c
===================================================================
--- u-boot-ti.orig/board/overo/overo.c
+++ u-boot-ti/board/overo/overo.c
@@ -29,6 +29,7 @@
  * MA 02111-1307 USA
  */
 #include <common.h>
+#include <netdev.h>
 #include <twl4030.h>
 #include <asm/io.h>
 #include <asm/arch/mux.h>


More information about the U-Boot mailing list