diff options
author | Ben Warren <biggerbadderben@gmail.com> | 2008-01-09 23:15:53 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-01-10 00:06:02 (GMT) |
commit | 422b1a01602b6e2fbf8444a1192c7ba31461fd4c (patch) | |
tree | e8891bc2519ddd636e32fe2b42945786dbce1f44 /net/eth.c | |
parent | d3a6532cbe263d992f49e86ac95bede28e96f9c8 (diff) | |
download | u-boot-fsl-qoriq-422b1a01602b6e2fbf8444a1192c7ba31461fd4c.tar.xz |
Fix Ethernet init() return codes
Change return values of init() functions in all Ethernet drivers to conform
to the following:
>=0: Success
<0: Failure
All drivers going forward should return 0 on success. Current drivers that
return 1 on success were left as-is to minimize changes.
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Acked-by: Stefan Roese <sr@denx.de>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
Acked-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Acked-By: Timur Tabi <timur@freescale.com>
Diffstat (limited to 'net/eth.c')
-rw-r--r-- | net/eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -433,7 +433,7 @@ int eth_init(bd_t *bis) do { debug ("Trying %s\n", eth_current->name); - if (!eth_current->init(eth_current,bis)) { + if (eth_current->init(eth_current,bis) >= 0) { eth_current->state = ETH_STATE_ACTIVE; return 0; |