Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=899413de1a6c9f999f677526df5205a9a70dcd93
Commit:     899413de1a6c9f999f677526df5205a9a70dcd93
Parent:     d082b9b5c6edf2e1d241af4630f12f0e5e2d2377
Author:     Michael Wu <[EMAIL PROTECTED]>
AuthorDate: Thu Jun 14 00:33:48 2007 -0700
Committer:  John W. Linville <[EMAIL PROTECTED]>
CommitDate: Tue Jul 10 13:51:38 2007 -0400

    [PATCH] rtl8187: fix endianness issue in rtl8225 register writing
    
    I failed to notice that a u16 was being passed to the hardware.
    This fixes it.
    
    Thanks to Kasper F. Brandt for finding this!
    
    Signed-off-by: Michael Wu <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
---
 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 e25a09f..efc4120 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)
        msleep(2);
 }
 
-static void rtl8225_write_8051(struct ieee80211_hw *dev, u8 addr, u16 data)
+static void rtl8225_write_8051(struct ieee80211_hw *dev, u8 addr, __le16 data)
 {
        struct rtl8187_priv *priv = dev->priv;
        u16 reg80, reg82, reg84;
@@ -106,7 +106,7 @@ void rtl8225_write(struct ieee80211_hw *dev, u8 addr, u16 
data)
        struct rtl8187_priv *priv = dev->priv;
 
        if (priv->asic_rev)
-               rtl8225_write_8051(dev, addr, data);
+               rtl8225_write_8051(dev, addr, cpu_to_le16(data));
        else
                rtl8225_write_bitbang(dev, addr, data);
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to