diff options
Diffstat (limited to 'drivers/net/chelsio/cxgb2.c')
-rw-r--r-- | drivers/net/chelsio/cxgb2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/chelsio/cxgb2.c b/drivers/net/chelsio/cxgb2.c index 16f131396999..a509337eab2d 100644 --- a/drivers/net/chelsio/cxgb2.c +++ b/drivers/net/chelsio/cxgb2.c | |||
@@ -814,7 +814,7 @@ static int get_eeprom(struct net_device *dev, struct ethtool_eeprom *e, | |||
814 | 814 | ||
815 | e->magic = EEPROM_MAGIC(adapter); | 815 | e->magic = EEPROM_MAGIC(adapter); |
816 | for (i = e->offset & ~3; i < e->offset + e->len; i += sizeof(u32)) | 816 | for (i = e->offset & ~3; i < e->offset + e->len; i += sizeof(u32)) |
817 | t1_seeprom_read(adapter, i, (u32 *)&buf[i]); | 817 | t1_seeprom_read(adapter, i, (__le32 *)&buf[i]); |
818 | memcpy(data, buf + e->offset, e->len); | 818 | memcpy(data, buf + e->offset, e->len); |
819 | return 0; | 819 | return 0; |
820 | } | 820 | } |