diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2007-08-23 00:47:03 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:52:01 -0400 |
commit | c676504ef5fe682bd343149de0e5c57bbf793ff9 (patch) | |
tree | 31e051a26b4bca8eea118259246b8d1f6ff72b98 /drivers/net/ixgb/ixgb_ethtool.c | |
parent | 3e33545ba6f8ca04b28a015e095662a35a4e2670 (diff) |
ixgb: endianness
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/ixgb/ixgb_ethtool.c')
-rw-r--r-- | drivers/net/ixgb/ixgb_ethtool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ixgb/ixgb_ethtool.c b/drivers/net/ixgb/ixgb_ethtool.c index ddad26bb5c58..fddd5844168d 100644 --- a/drivers/net/ixgb/ixgb_ethtool.c +++ b/drivers/net/ixgb/ixgb_ethtool.c | |||
@@ -422,7 +422,7 @@ ixgb_get_eeprom(struct net_device *netdev, | |||
422 | { | 422 | { |
423 | struct ixgb_adapter *adapter = netdev_priv(netdev); | 423 | struct ixgb_adapter *adapter = netdev_priv(netdev); |
424 | struct ixgb_hw *hw = &adapter->hw; | 424 | struct ixgb_hw *hw = &adapter->hw; |
425 | uint16_t *eeprom_buff; | 425 | __le16 *eeprom_buff; |
426 | int i, max_len, first_word, last_word; | 426 | int i, max_len, first_word, last_word; |
427 | int ret_val = 0; | 427 | int ret_val = 0; |
428 | 428 | ||
@@ -446,7 +446,7 @@ ixgb_get_eeprom(struct net_device *netdev, | |||
446 | first_word = eeprom->offset >> 1; | 446 | first_word = eeprom->offset >> 1; |
447 | last_word = (eeprom->offset + eeprom->len - 1) >> 1; | 447 | last_word = (eeprom->offset + eeprom->len - 1) >> 1; |
448 | 448 | ||
449 | eeprom_buff = kmalloc(sizeof(uint16_t) * | 449 | eeprom_buff = kmalloc(sizeof(__le16) * |
450 | (last_word - first_word + 1), GFP_KERNEL); | 450 | (last_word - first_word + 1), GFP_KERNEL); |
451 | if(!eeprom_buff) | 451 | if(!eeprom_buff) |
452 | return -ENOMEM; | 452 | return -ENOMEM; |