mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 19:05:51 +01:00
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>
This commit is contained in:
committed by
Wolfgang Denk
parent
d3a6532cbe
commit
422b1a0160
@@ -624,7 +624,7 @@ static void rtl8169_init_ring(struct eth_device *dev)
|
||||
/**************************************************************************
|
||||
RESET - Finish setting up the ethernet interface
|
||||
***************************************************************************/
|
||||
static void rtl_reset(struct eth_device *dev, bd_t *bis)
|
||||
static int rtl_reset(struct eth_device *dev, bd_t *bis)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -660,6 +660,7 @@ static void rtl_reset(struct eth_device *dev, bd_t *bis)
|
||||
#ifdef DEBUG_RTL8169
|
||||
printf ("%s elapsed time : %d\n", __FUNCTION__, currticks()-stime);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user