r8152: modify the check of the flag of PHY_RESET in set_speed function
authorhayeswang <hayeswang@realtek.com>
Thu, 16 Jun 2016 06:08:29 +0000 (14:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jun 2016 00:08:33 +0000 (17:08 -0700)
commitfae5617877f2e1040106385d94529f30780525e1
tree2147a8926c585ff956ded1eead44b38d80b2fbd1
parentd21cfb375eb07ce294ac29a0a51e45413fc8506d
r8152: modify the check of the flag of PHY_RESET in set_speed function

In set_speed(), BMCR_RESET would be set when the flag of PHY_RESET
is set. Use BMCR_RESET to replace testing the flag of PHY_RESET.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c