MLK-16285-6 usb: cdns3: add more operatons at cdns3_remove
authorPeter Chen <peter.chen@nxp.com>
Mon, 18 Sep 2017 06:08:57 +0000 (14:08 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:38:37 +0000 (15:38 -0500)
Add PHY shutdown and clock disable operations at cdns3_remove.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
Acked-by: Li Jun <jun.li@nxp.com>
drivers/usb/cdns3/core.c

index f977465..b640197 100644 (file)
@@ -562,6 +562,8 @@ static int cdns3_remove(struct platform_device *pdev)
        struct cdns3 *cdns = platform_get_drvdata(pdev);
 
        cdns3_remove_roles(cdns);
+       usb_phy_shutdown(cdns->usbphy);
+       cdns3_disable_unprepare_clks(&pdev->dev);
 
        return 0;
 }