r8152: set RTL8152_UNPLUG when finding -ENODEV
authorhayeswang <hayeswang@realtek.com>
Thu, 30 Oct 2014 03:46:40 +0000 (11:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Oct 2014 20:55:17 +0000 (16:55 -0400)
commit6761049629402fc811961b4f996fec77169b5429
tree935eeebaada3a47f21dd1c36c868abe8dad90d2d
parent646697b9e3fef913bb6393ebfb6115c442a96be7
r8152: set RTL8152_UNPLUG when finding -ENODEV

Set RTL8152_UNPLUG when finding -ENODEV. This could accelerate
unloading the driver when the device is unplugged.

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