projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce35a81
)
[PATCH] fix rtl8150
author
Al Viro
<viro@ftp.linux.org.uk>
Sun, 4 Feb 2007 03:02:17 +0000
(
03:02
+0000)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Sun, 4 Feb 2007 04:37:37 +0000
(20:37 -0800)
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: Linus Torvalds <torvalds@linux-foundation.org>
drivers/usb/net/rtl8150.c
patch
|
blob
|
history
diff --git
a/drivers/usb/net/rtl8150.c
b/drivers/usb/net/rtl8150.c
index
e0eecda
..
670262a
100644
(file)
--- a/
drivers/usb/net/rtl8150.c
+++ b/
drivers/usb/net/rtl8150.c
@@
-284,7
+284,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;