usb: host: ohci-platform: set hcd->phy to avoid phy_get() in usb_add_hcd()
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Mon, 13 Mar 2017 06:25:24 +0000 (15:25 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2017 04:35:25 +0000 (13:35 +0900)
commitd3d6ef1fb908b286a610fe063613e519bc50178b
tree7a35232a057555e86ae206676a8f263cf7f1d130
parent42a58c9949ddf16e557f5c2e22566f3440e7b60f
usb: host: ohci-platform: set hcd->phy to avoid phy_get() in usb_add_hcd()

This patch sets hcd->phy from own phy context to avoid phy_get()
in usb_add_hcd(). Since core/hcd.c manages the phy only in
usb_add_hcd() and usb_remove_hcd(), there is difficult to manage
the phy in suspend/resume.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-platform.c