aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgb/ixgb_ethtool.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ixgb/ixgb_ethtool.c')
-rw-r--r--drivers/net/ixgb/ixgb_ethtool.c4
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;