Skip to content

Commit

Permalink
[PATCH] fix rtl8150
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Feb 4, 2007
1 parent ce35a81 commit 886ae1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/usb/net/rtl8150.c
Original file line number Diff line number Diff line change
Expand Up @@ -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(&reg);
data[1] = reg & 0xff;
data[2] = (reg >> 8) & 0xff;
tmp = indx | PHY_WRITE | PHY_GO;
i = 0;

Expand Down

0 comments on commit 886ae1f

Please sign in to comment.