diff options
Diffstat (limited to 'drivers/net/wireless/rtl8187_rtl8225.c')
-rw-r--r-- | drivers/net/wireless/rtl8187_rtl8225.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rtl8187_rtl8225.c b/drivers/net/wireless/rtl8187_rtl8225.c index e25a09f1b068..efc41207780e 100644 --- a/drivers/net/wireless/rtl8187_rtl8225.c +++ b/drivers/net/wireless/rtl8187_rtl8225.c | |||
@@ -67,7 +67,7 @@ static void rtl8225_write_bitbang(struct ieee80211_hw *dev, u8 addr, u16 data) | |||
67 | msleep(2); | 67 | msleep(2); |
68 | } | 68 | } |
69 | 69 | ||
70 | static void rtl8225_write_8051(struct ieee80211_hw *dev, u8 addr, u16 data) | 70 | static void rtl8225_write_8051(struct ieee80211_hw *dev, u8 addr, __le16 data) |
71 | { | 71 | { |
72 | struct rtl8187_priv *priv = dev->priv; | 72 | struct rtl8187_priv *priv = dev->priv; |
73 | u16 reg80, reg82, reg84; | 73 | u16 reg80, reg82, reg84; |
@@ -106,7 +106,7 @@ void rtl8225_write(struct ieee80211_hw *dev, u8 addr, u16 data) | |||
106 | struct rtl8187_priv *priv = dev->priv; | 106 | struct rtl8187_priv *priv = dev->priv; |
107 | 107 | ||
108 | if (priv->asic_rev) | 108 | if (priv->asic_rev) |
109 | rtl8225_write_8051(dev, addr, data); | 109 | rtl8225_write_8051(dev, addr, cpu_to_le16(data)); |
110 | else | 110 | else |
111 | rtl8225_write_bitbang(dev, addr, data); | 111 | rtl8225_write_bitbang(dev, addr, data); |
112 | } | 112 | } |