diff options
author | Stefan Roese <sr@denx.de> | 2007-08-16 19:50:53 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2007-08-16 19:50:53 +0200 |
commit | fc9970137c8f187b5938e4926224e0f3d46c3476 (patch) | |
tree | 8d7a004483b1ec71ab7779cab468dece8382d13b /drivers/qe/uec.c | |
parent | 07bc20560cb9d3d186cca268c05c82762e8c55ad (diff) | |
parent | d35b508a55508535b6e8445b718585d27df733d3 (diff) |
Merge with git://www.denx.de/git/u-boot.git
Diffstat (limited to 'drivers/qe/uec.c')
-rw-r--r-- | drivers/qe/uec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/qe/uec.c b/drivers/qe/uec.c index 89a7279823..dc2765bb09 100644 --- a/drivers/qe/uec.c +++ b/drivers/qe/uec.c @@ -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 -EINVAL; + return 0; } 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 err; + return 0; } - return 0; + return uec->mii_info->link; } static void uec_halt(struct eth_device* dev) |