projects
/
wrapfs-5.3.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c21af7a
)
fix rtl8150
author
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 21 Feb 2007 11:48:22 +0000
(12:48 +0100)
committer
Adrian Bunk
<bunk@stusta.de>
Wed, 21 Feb 2007 11:48:22 +0000
(12:48 +0100)
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>
drivers/usb/net/rtl8150.c
patch
|
blob
|
history
diff --git
a/drivers/usb/net/rtl8150.c
b/drivers/usb/net/rtl8150.c
index 8ca52be23976a93406b21ec99e45f4ef7ce0140a..9cf07c8c3259fef0b2f3fb20650bad59915c7e60 100644
(file)
--- 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(®);
+ data[1] = reg & 0xff;
+ data[2] = (reg >> 8) & 0xff;
tmp = indx | PHY_WRITE | PHY_GO;
i = 0;