History

[PATCH] fix rtl8150

That code doesn't do what its author apparently thought it would do...

Al Viro committed 19 years ago

Commit 886ae1f1 parent ce35a811 file · +2 −1Browse files

Unified · Split

drivers/usb/net/rtl8150.c+2−1
@@ -284,7 +284,8 @@ static int write_mii_word(rtl8150_t * dev, u8 phy, __u8 indx, u16 reg) · 283 unmodified lines
284 u8 data[3], tmp;284 u8 data[3], tmp;
285 285
286 data[0] = phy;286 data[0] = phy;
287 *(data + 1) = cpu_to_le16p(&reg);287 data[1] = reg & 0xff;
288 data[2] = (reg >> 8) & 0xff;
288 tmp = indx | PHY_WRITE | PHY_GO;289 tmp = indx | PHY_WRITE | PHY_GO;
289 i = 0;290 i = 0;
290 291

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t