]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - drivers/rtl8139.c
Merged and added more pxa-regs.h stuff, especially the GPIO Control
[karo-tx-uboot.git] / drivers / rtl8139.c
index b9e4a8d4155271fe88fe9e5a340e6b7b87ea971d..a95f84e62585138f46cfffbe0a5c298ad1f87718 100644 (file)
@@ -254,7 +254,7 @@ static int rtl8139_probe(struct eth_device *dev, bd_t *bis)
 
        addr_len = read_eeprom(0,8) == 0x8129 ? 8 : 6;
        for (i = 0; i < 3; i++)
-               *ap++ = read_eeprom(i + 7, addr_len);
+               *ap++ = le16_to_cpu (read_eeprom(i + 7, addr_len));
 
        speed10 = inb(ioaddr + MediaStatus) & MSRSpeed10;
        fullduplex = inw(ioaddr + MII_BMCR) & BMCRDuplex;