UPSTREAM: usb: dwc3: core: simplify suspend/resume operations
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 16 May 2016 07:52:58 +0000 (10:52 +0300)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commit588aa72d8ef2c8156a30d6b98b0f5853e38c2f29
treed666f02609c40784fdb058a3e97979e11038a750
parent868e4f36ab8f0bbb4652ee07e21fab8831cacd4b
UPSTREAM: usb: dwc3: core: simplify suspend/resume operations

now that we have re-factored dwc3_core_init() and
dwc3_core_exit() we can use them for suspend/resume
operations.

This will help us avoid some common mistakes when
patching code when we have duplicated pieces of code
doing the same thing.

Change-Id: I295c3b354123ce0449e7e4ee10e96fa444994488
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit 51f5d49ad6f011ee380b866ea617fd90584189a2)
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.h