]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: shutdown usb_phy when removing the device
authorVivek Gautam <gautam.vivek@samsung.com>
Sat, 13 Oct 2012 13:50:18 +0000 (19:20 +0530)
committerFelipe Balbi <balbi@ti.com>
Mon, 15 Oct 2012 13:25:23 +0000 (16:25 +0300)
commitf1453349605eb6b9cc1dd01d96ddb7af745b7135
treefd12c13855bf1c85cf66b722598d4abbe49f2acb
parentb16b1b8e97eac0a24f2b4a4f6a4d9b356711417a
usb: dwc3: shutdown usb_phy when removing the device

We call usb_phy_init() from dwc3_core_init() during
probe, so adding usb_phy_shutdown() to dwc3_core_exit()
while removing the device so we don't keep PHYs
turned on, consuming power, unnecessarily.

Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.c