]> git.baikalelectronics.ru Git - kernel.git/commit
r8152: check WORK_ENABLE in suspend function
authorhayeswang <hayeswang@realtek.com>
Wed, 29 Oct 2014 03:12:17 +0000 (11:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Oct 2014 19:49:00 +0000 (15:49 -0400)
commite38bf2605dec4ddc799f9b0c6cdd7e408f4522f9
tree11c87eb8affe17bacfb56ac2b1c5f553d441e3db
parent164bb1bbc8a754e36818b5b73b0d348cfe26a299
r8152: check WORK_ENABLE in suspend function

Avoid unnecessary behavior when autosuspend occurs during open().
The relative processes should only be run after finishing open().

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