summaryrefslogtreecommitdiff
path: root/drivers/rtl8139.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2005-04-03 15:51:42 +0000
committerwdenk <wdenk>2005-04-03 15:51:42 +0000
commit756f586a73d756f163dc03a049d650cc1a5b5899 (patch)
tree15cd902e173aa72118ee90622ffe5492d7243b70 /drivers/rtl8139.c
parentb1bf6f2c9b4aa17c6ccb7a631c99fae7f4b5744b (diff)
downloadu-boot-imx-756f586a73d756f163dc03a049d650cc1a5b5899.zip
u-boot-imx-756f586a73d756f163dc03a049d650cc1a5b5899.tar.gz
u-boot-imx-756f586a73d756f163dc03a049d650cc1a5b5899.tar.bz2
* Patch by Yusdi Santoso, 22 Oct 2004:
- Add support for HIDDEN_DRAGON board - fix endianess problem in driver/rtl1839.c * Patch by Allen Curtis, 21 Oct 2004: support multiple serial ports
Diffstat (limited to 'drivers/rtl8139.c')
-rw-r--r--drivers/rtl8139.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtl8139.c b/drivers/rtl8139.c
index b9e4a8d..a95f84e 100644
--- a/drivers/rtl8139.c
+++ b/drivers/rtl8139.c
@@ -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;