]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
usb: phy: am335x: call usb_gen_phy_init()/usb_gen_phy_shutdown() in am335x_init(...
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 17 Jul 2014 10:50:28 +0000 (12:50 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 27 Aug 2014 08:44:19 +0000 (10:44 +0200)
drivers/usb/phy/phy-am335x.c

index 4b74882f71d7b639cd9cc839544b2d915e88158d..f490e740c6c11cfc721c2ad49aef0ec261dbf9de 100644 (file)
@@ -22,6 +22,7 @@ static int am335x_init(struct usb_phy *phy)
 {
        struct am335x_phy *am_phy = dev_get_drvdata(phy->dev);
 
+       usb_gen_phy_init(phy);
        phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, true);
        return 0;
 }
@@ -31,6 +32,7 @@ static void am335x_shutdown(struct usb_phy *phy)
        struct am335x_phy *am_phy = dev_get_drvdata(phy->dev);
 
        phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, false);
+       usb_gen_phy_shutdown(phy);
 }
 
 static int am335x_phy_probe(struct platform_device *pdev)