usb: phy: nop: Defer clock prepare until PHY init
authorMark Brown <broonie@linaro.org>
Sun, 11 Aug 2013 14:26:04 +0000 (15:26 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 1 Oct 2013 14:31:10 +0000 (09:31 -0500)
commit4d175f340c9c055482688d2205038413dc7b6f1e
tree5da0d924d671ffcd059aac014aab990ee499a7f0
parent15c03dd4859ab16f9212238f29dd315654aa94f6
usb: phy: nop: Defer clock prepare until PHY init

Since we only enable the PHY clock on init and the PHY init and shutdown
does not occur in atomitc context there is no need to prepare the clock
before it is enabled.  Move the clk_prepare() operations to go along
with the enables, allowing the clock to be fully idle when not in use.

Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-am335x.c
drivers/usb/phy/phy-generic.c
drivers/usb/phy/phy-generic.h