diff options
| author | Ben Warren <[email protected]> | 2008-01-09 18:15:53 -0500 |
|---|---|---|
| committer | Wolfgang Denk <[email protected]> | 2008-01-10 01:06:02 +0100 |
| commit | 422b1a01602b6e2fbf8444a1192c7ba31461fd4c (patch) | |
| tree | e8891bc2519ddd636e32fe2b42945786dbce1f44 /cpu/mpc8xx/fec.c | |
| parent | d3a6532cbe263d992f49e86ac95bede28e96f9c8 (diff) | |
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 <[email protected]>
Acked-by: Stefan Roese <[email protected]>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Acked-by: Kim Phillips <[email protected]>
Acked-by: Haavard Skinnemoen <[email protected]>
Acked-By: Timur Tabi <[email protected]>
Diffstat (limited to 'cpu/mpc8xx/fec.c')
| -rw-r--r-- | cpu/mpc8xx/fec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/mpc8xx/fec.c b/cpu/mpc8xx/fec.c index da473ca0b1f..5a314137d91 100644 --- a/cpu/mpc8xx/fec.c +++ b/cpu/mpc8xx/fec.c @@ -727,7 +727,7 @@ static int fec_init (struct eth_device *dev, bd_t * bd) if (efis->actual_phy_addr == -1) { printf ("Unable to discover phy!\n"); - return 0; + return -1; } #else efis->actual_phy_addr = -1; @@ -763,7 +763,7 @@ static int fec_init (struct eth_device *dev, bd_t * bd) efis->initialized = 1; - return 1; + return 0; } |
