]> git.karo-electronics.de Git - linux-beck.git/commit
usb: phy: ab8500-usb: call phy_dis_work only when necessary
authorSakethram Bommisetti <sakethram.bommisetti@stericsson.com>
Wed, 3 Apr 2013 08:45:13 +0000 (10:45 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 3 Apr 2013 09:03:07 +0000 (12:03 +0300)
commit588233733804aeaf16335a32904aaa4d15b9bddd
treec84b6cda92bce78d6b027cb0e76b4715ca208e89
parent8db12231bccc5ebf414b267af68c5a8c1e4432dd
usb: phy: ab8500-usb: call phy_dis_work only when necessary

Modify ab8500_usb_set_peripheral() and ab8500_usb_set_host() code to
schedule phy_dis_work only when necessary in order to prevent regulator
count mismatch during reboot/shutdown.

Signed-off-by: Sakethram Bommisetti <sakethram.bommisetti@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