usb: phy: ab8500-usb: fix unbalanced clock and regulator disable warnings
authorMian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
Wed, 3 Apr 2013 08:45:09 +0000 (10:45 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 3 Apr 2013 09:02:05 +0000 (12:02 +0300)
commitf5ef7b42823945d979ebd957e79bf66dc6a5e3d1
tree7c5c67a200f82caa220a9e3d3cced0337b886adf
parent54dfbb08051c2fa666bd4ce6cb7626b9e2a80655
usb: phy: ab8500-usb: fix unbalanced clock and regulator disable warnings

To prevent clock and regulator frameworks from complaining, only disable
the host or peripheral phy if they were enabled.

Reported-by: Sakethram Bommisetti <sakethram.bommisetti@stericsson.com>
Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-ab8500-usb.c