]> git.baikalelectronics.ru Git - kernel.git/commit
r8152: check RTL8152_UNPLUG
authorhayeswang <hayeswang@realtek.com>
Fri, 11 Apr 2014 09:54:31 +0000 (17:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Apr 2014 05:59:38 +0000 (01:59 -0400)
commitdc59cfe5092ec2cc5ef8449c99c73b610d5acaa5
treec9e22594e72552ef669f65fb565cee0064acb3ba
parent9685339137212bda72d1854bb4c3cfc66cd8a591
r8152: check RTL8152_UNPLUG

When the device is unplugged, the driver would try to disable the
device. Add checking the flag of RTL8152_UNPLUG to skip setting
the device when it is unplugged. This could shorten the time of
unloading the driver.

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