Align the QE UEC driver with commit 505be87
PATCH 1/1 Align the QE UEC driver with commit 505be87
Commit 505be87 - NET: Proper return code handling in eth_init() function in file eth.c
Signed-off-by Emil Medve <[email protected]>
---
Resending as the previous e-mail had a bad header
drivers/qe/uec.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/qe/uec.c +3 -3
@@ -1110,7 +1110,7 @@ static int uec_init(struct eth_device* dev, bd_t *bd)if (dev->enetaddr[0 ] &0x01 ) {printf ("%s: MacAddress is multcast address\n" , __FUNCTION__); -return 0 ; +return -EINVAL ; }uec_set_mac_address (uec, dev->enetaddr); uec->the_first_run =1 ;
@@ -1119,10 +1119,10 @@ static int uec_init(struct eth_device* dev, bd_t *bd) err =uec_open (uec,COMM_DIR_RX_AND_TX );if (err) {printf ("%s: cannot enable UEC device\n" , dev->name); -return 0 ; +return err; } -return uec->mii_info->link; +return !uec->mii_info->link; }static void uec_halt (struct eth_device * dev)
Signature · 1 line
1.5.4-rc2.GIT
PATCH 1/1 Align the QE UEC driver with commit 505be87
Quoted 3 lines · Emil Medve
Commit 505be87 - NET: Proper return code handling in
eth_init()function in fileeth.cSigned-off-by Emil Medve <[email protected]>
Acked-by Timur Tabi <[email protected]>
This fixes the 8323.
Signature · 2 lines
Timur Tabi Linux kernel developer at Freescale