r8152: fix setting RTL8152_UNPLUG
authorhayeswang <hayeswang@realtek.com>
Tue, 30 Sep 2014 08:48:01 +0000 (16:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Sep 2014 20:23:51 +0000 (16:23 -0400)
commitf561de33d63aefb97fb0c3653a36fb32d4e8c74a
tree84af0838d17e75137ca62f5981a18003a885eb31
parent37b9a2673cd24e389216770be24a064b6200a822
r8152: fix setting RTL8152_UNPLUG

The flag of RTL8152_UNPLUG should only be set when the device is
unplugged, not each time the rtl8152_disconnect() is called.
Otherwise, the device wouldn't be stopped normally.

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