Commit 65c35f6a authored by Al Viro's avatar Al Viro Committed by Adrian Bunk

fix rtl8150

That code doesn't do what its author apparently thought it would do...
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
parent c21af7af
...@@ -274,7 +274,8 @@ static int write_mii_word(rtl8150_t * dev, u8 phy, __u8 indx, u16 reg) ...@@ -274,7 +274,8 @@ static int write_mii_word(rtl8150_t * dev, u8 phy, __u8 indx, u16 reg)
u8 data[3], tmp; u8 data[3], tmp;
data[0] = phy; data[0] = phy;
*(data + 1) = cpu_to_le16p(&reg); data[1] = reg & 0xff;
data[2] = (reg >> 8) & 0xff;
tmp = indx | PHY_WRITE | PHY_GO; tmp = indx | PHY_WRITE | PHY_GO;
i = 0; i = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment