[U-Boot] [PATCH 02/12] bfin_EMAC: Fix return value of bfin_EMAC_initialize()

Matthias Kaehlcke
2010-01-24T10:07:21Z

bfin_EMAC: Return 1 from bfin_EMAC_initialize() upon successful initialization

Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
---
drivers/net/bfin_mac.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/bfin_mac.c b/drivers/net/bfin_mac.c
index ec45b63..f527c9c 100644
--- a/drivers/net/bfin_mac.c
+++ b/drivers/net/bfin_mac.c
@@ -113,7 +113,7 @@ int bfin_EMAC_initialize(bd_t *bis)
miiphy_register(dev->name, bfin_miiphy_read, bfin_miiphy_write);
#endif

- return 0;
+ return 1;
}

static int bfin_EMAC_send(struct eth_device *dev, volatile void *packet,
--
1.6.3.1