summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2007-02-21 12:48:22 +0100
committerAdrian Bunk <bunk@stusta.de>2007-02-21 12:48:22 +0100
commit65c35f6af648308f2a2d31b2dccacc7b3aeb640f (patch)
tree4e453ea6da72fb6d95fd512356a6ede9d864be3c /drivers
parentc21af7af790184233f34077985ff160fe6b07d64 (diff)
fix rtl8150
That code doesn't do what its author apparently thought it would do... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/net/rtl8150.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/net/rtl8150.c b/drivers/usb/net/rtl8150.c
index 8ca52be23976..9cf07c8c3259 100644
--- a/drivers/usb/net/rtl8150.c
+++ b/drivers/usb/net/rtl8150.c
@@ -274,7 +274,8 @@ static int write_mii_word(rtl8150_t * dev, u8 phy, __u8 indx, u16 reg)
u8 data[3], tmp;
data[0] = phy;
- *(data + 1) = cpu_to_le16p(&reg);
+ data[1] = reg & 0xff;
+ data[2] = (reg >> 8) & 0xff;
tmp = indx | PHY_WRITE | PHY_GO;
i = 0;