[U-Boot-Users] [PATCH] Fix compile error caused by incorrect function return type 2

Tsi-Chung Liew Tsi-Chung.Liew at freescale.com
Fri Aug 1 02:52:28 CEST 2008


From: TsiChung Liew <Tsi-Chung.Liew at freescale.com>

Rename int mii_init(void) to void mii_init(void) for idmr
ColdFire platform

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew at freescale.com>
---
 board/idmr/mii.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/board/idmr/mii.c b/board/idmr/mii.c
index f130e6e..78a7028 100644
--- a/board/idmr/mii.c
+++ b/board/idmr/mii.c
@@ -200,7 +200,7 @@ int mii_discover_phy(struct eth_device *dev)
 }
 #endif				/* CFG_DISCOVER_PHY */
 
-int mii_init(void) __attribute__((weak,alias("__mii_init")));
+void mii_init(void) __attribute__((weak,alias("__mii_init")));
 
 void __mii_init(void)
 {
-- 
1.5.6.4





More information about the U-Boot mailing list