X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fusb%2Fnet%2Frtl8150.c;h=ea153dc9b0ac3d620b49e2f91b04e4c0774a98ed;hb=42eaf0d8f2e7b8201afc00b0ebe1bd89ea51d42d;hp=e0eecda78ec12cac845fac5831742643db94688f;hpb=5859271ebd6c60d7d946bbbb6b485e164c6c614a;p=pandora-kernel.git diff --git a/drivers/usb/net/rtl8150.c b/drivers/usb/net/rtl8150.c index e0eecda78ec1..ea153dc9b0ac 100644 --- a/drivers/usb/net/rtl8150.c +++ b/drivers/usb/net/rtl8150.c @@ -6,7 +6,6 @@ * version 2 as published by the Free Software Foundation. */ -#include #include #include #include @@ -284,7 +283,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;