Fix Ethernet init() return codes
authorBen Warren <biggerbadderben@gmail.com>
Wed, 9 Jan 2008 23:15:53 +0000 (18:15 -0500)
committerWolfgang Denk <wd@denx.de>
Thu, 10 Jan 2008 00:06:02 +0000 (01:06 +0100)
commit422b1a01602b6e2fbf8444a1192c7ba31461fd4c
treee8891bc2519ddd636e32fe2b42945786dbce1f44
parentd3a6532cbe263d992f49e86ac95bede28e96f9c8
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>
13 files changed:
cpu/ixp/npe/npe.c
cpu/mpc8xx/fec.c
drivers/net/dc2114x.c
drivers/net/eepro100.c
drivers/net/macb.c
drivers/net/pcnet.c
drivers/net/rtl8139.c
drivers/net/rtl8169.c
drivers/net/tsec.c
drivers/net/tsi108_eth.c
drivers/net/uli526x.c
drivers/qe/uec.c
net/eth.c