aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/8139cp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/8139cp.c')
-rw-r--r--drivers/net/8139cp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/8139cp.c b/drivers/net/8139cp.c
index 46d8c01437e9..b49be8f2c107 100644
--- a/drivers/net/8139cp.c
+++ b/drivers/net/8139cp.c
@@ -1628,7 +1628,7 @@ static int read_eeprom (void __iomem *ioaddr, int location, int addr_len)
1628 eeprom_delay (); 1628 eeprom_delay ();
1629 1629
1630 /* Shift the read command bits out. */ 1630 /* Shift the read command bits out. */
1631 for (i = 4 + addr_len; i >= 0; i--) { 1631 for (i = 3 + addr_len - 1; i >= 0; i--) {
1632 int dataval = (read_cmd & (1 << i)) ? EE_DATA_WRITE : 0; 1632 int dataval = (read_cmd & (1 << i)) ? EE_DATA_WRITE : 0;
1633 writeb (EE_ENB | dataval, ee_addr); 1633 writeb (EE_ENB | dataval, ee_addr);
1634 eeprom_delay (); 1634 eeprom_delay ();