aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/rtl8180_dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rtl8180_dev.c b/drivers/net/wireless/rtl8180_dev.c
index b1b3a478335b..c181f23e930d 100644
--- a/drivers/net/wireless/rtl8180_dev.c
+++ b/drivers/net/wireless/rtl8180_dev.c
@@ -688,9 +688,9 @@ static int rtl8180_add_interface(struct ieee80211_hw *dev,
688 688
689 rtl818x_iowrite8(priv, &priv->map->EEPROM_CMD, RTL818X_EEPROM_CMD_CONFIG); 689 rtl818x_iowrite8(priv, &priv->map->EEPROM_CMD, RTL818X_EEPROM_CMD_CONFIG);
690 rtl818x_iowrite32(priv, (__le32 __iomem *)&priv->map->MAC[0], 690 rtl818x_iowrite32(priv, (__le32 __iomem *)&priv->map->MAC[0],
691 cpu_to_le32(*(u32 *)conf->mac_addr)); 691 le32_to_cpu(*(__le32 *)conf->mac_addr));
692 rtl818x_iowrite16(priv, (__le16 __iomem *)&priv->map->MAC[4], 692 rtl818x_iowrite16(priv, (__le16 __iomem *)&priv->map->MAC[4],
693 cpu_to_le16(*(u16 *)(conf->mac_addr + 4))); 693 le16_to_cpu(*(__le16 *)(conf->mac_addr + 4)));
694 rtl818x_iowrite8(priv, &priv->map->EEPROM_CMD, RTL818X_EEPROM_CMD_NORMAL); 694 rtl818x_iowrite8(priv, &priv->map->EEPROM_CMD, RTL818X_EEPROM_CMD_NORMAL);
695 695
696 return 0; 696 return 0;