From patchwork Sat Nov 3 12:30:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 1692221 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 42BA7DFB7B for ; Sat, 3 Nov 2012 12:25:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932513Ab2KCMY7 (ORCPT ); Sat, 3 Nov 2012 08:24:59 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:23013 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932075Ab2KCMY5 (ORCPT ); Sat, 3 Nov 2012 08:24:57 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MCW009YDVT826C0@mailout1.samsung.com>; Sat, 03 Nov 2012 21:24:56 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.125]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 23.34.01231.81D05905; Sat, 03 Nov 2012 21:24:56 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-1d-50950d18b1d2 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id A2.34.01231.81D05905; Sat, 03 Nov 2012 21:24:56 +0900 (KST) Received: from vivekkumarg-linuxpc.sisodomain.com ([107.108.73.134]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MCW00AJCVSYDX60@mmp1.samsung.com>; Sat, 03 Nov 2012 21:24:56 +0900 (KST) From: Vivek Gautam To: linux-usb@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, linux-omap@vger.kernel.org Cc: gregkh@linuxfoundation.org, balbi@ti.com, rob.herring@calxeda.com, av.tikhomirov@samsung.com, kishon@ti.com Subject: [PATCH v3 2/2] USB: DWC3: EXYNOS: Remove platform data for dwc3-exynos Date: Sat, 03 Nov 2012 18:00:28 +0530 Message-id: <1351945828-28559-3-git-send-email-gautam.vivek@samsung.com> X-Mailer: git-send-email 1.7.6.5 In-reply-to: <1351945828-28559-1-git-send-email-gautam.vivek@samsung.com> References: <1351945828-28559-1-git-send-email-gautam.vivek@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrLLMWRmVeSWpSXmKPExsWyRsSkVleCd2qAQcc3C4vZS/pZLBYta2V2 YPL4vEkugDGKyyYlNSezLLVI3y6BK6P55iX2gkaBiiu/2RoYN/B2MXJySAiYSLSsPsYGYYtJ XLi3Hsjm4hASWMoosfrkQ1aYonULj7CD2EICixglTraYQdiTmSRudteC2GwCuhJNb3cxgtgi AgkSV3/9Ze5i5OBgFiiUmH5OHCQsLOAvsevWQrBdLAKqEgsuTAcbzyvgIXH4BcwNChJvbj9j BrE5BTwlTt66xwixykPiVNdRdoheAYlvkw+xgIyXEJCV2HSAGeRkCYHLbBL7T35ghpgjKXFw xQ2WCYzCCxgZVjGKphYkFxQnpeca6hUn5haX5qXrJefnbmIEhuHpf8+kdjCubLA4xCjAwajE w3uBb0qAEGtiWXFl7iFGCQ5mJRHexceAQrwpiZVVqUX58UWlOanFhxh9gC6ZyCwlmpwPjJG8 knhDYxNzU2NTSyMjM1NTHMJK4rzNHikBQgLpiSWp2ampBalFMOOYODilGhgzdmYt+nu0+Kp8 7fNfTRxfrt74tkJ5tVDmtC6ZTO0vsr8/WDZN6DnjFbeJ3ZdX3CXjQqrX7beZz3fyObRNeb83 UUiAL1s69r+xutPkkpttzf6crvGH4jb4RavtDyvuYfawelSbmfGVzd7jpUDmLOGzYSF72p5I rtA3YGq4GLdcerLlk3lt75RYijMSDbWYi4oTAeHtFdpwAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphkeLIzCtJLcpLzFFi42I5/e+xgK4E79QAg6X9Ghazl/SzWCxa1srs wOTxeZNcAGNUA6NNRmpiSmqRQmpecn5KZl66rZJ3cLxzvKmZgaGuoaWFuZJCXmJuqq2Si0+A rltmDtBoJYWyxJxSoFBAYnGxkr4dpgmhIW66FjCNEbq+IUFwPUYGaCBhDWNG881L7AWNAhVX frM1MG7g7WLk5JAQMJFYt/AIO4QtJnHh3no2EFtIYBGjxMkWMwh7MpPEze5aEJsN6M2mt7sY QWwRgQSJq7/+MncxcnAwCxRKTD8nDhIWFvCX2HVrIdgYFgFViQUXprOC2LwCHhKHXxxjg1il IPHm9jNmEJtTwFPi5K17jBCrPCROdR1ln8DIu4CRYRWjaGpBckFxUnquoV5xYm5xaV66XnJ+ 7iZGcJA/k9rBuLLB4hCjAAejEg/vBb4pAUKsiWXFlbmHGCU4mJVEeBcfAwrxpiRWVqUW5ccX leakFh9i9AG6aiKzlGhyPjAC80riDY1NzE2NTS1NLEzMLHEIK4nzNnukBAgJpCeWpGanphak FsGMY+LglGpg1CwT+5aa+jKyepd7mCuPZDhr6PKzrzTO8XOIhjC/O6HCmSTswqH9Nm9aS/Ml lu8VXAseaW/f9KtkzVOB8NBG52X1e9eKRWhvFSwsKth865JdR9X+eXby35cfvnhh86RPNfon Hj6qeOpRuv3EmQf8XbXS73YnPs+5Wevk1+KS8HUj49zAchERJZbijERDLeai4kQAdsk5c58C AAA= X-CFilter-Loop: Reflected Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org We are removing plat data which was used till now to init and exit phy. We no longer need this since dwc3-core takes care of initializing and shutting-down the phy using usb_phy_init() and usb_phy_shutdown(). Signed-off-by: Vivek Gautam --- drivers/usb/dwc3/dwc3-exynos.c | 16 ---------------- 1 files changed, 0 insertions(+), 16 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3-exynos.c index 6471d78..dc35c54 100644 --- a/drivers/usb/dwc3/dwc3-exynos.c +++ b/drivers/usb/dwc3/dwc3-exynos.c @@ -92,7 +92,6 @@ static u64 dwc3_exynos_dma_mask = DMA_BIT_MASK(32); static int __devinit dwc3_exynos_probe(struct platform_device *pdev) { - struct dwc3_exynos_data *pdata = pdev->dev.platform_data; struct platform_device *dwc3; struct dwc3_exynos *exynos; struct clk *clk; @@ -145,14 +144,6 @@ static int __devinit dwc3_exynos_probe(struct platform_device *pdev) clk_enable(exynos->clk); - /* PHY initialization */ - if (!pdata) { - dev_dbg(&pdev->dev, "missing platform data\n"); - } else { - if (pdata->phy_init) - pdata->phy_init(pdev, pdata->phy_type); - } - ret = platform_device_add_resources(dwc3, pdev->resource, pdev->num_resources); if (ret) { @@ -169,9 +160,6 @@ static int __devinit dwc3_exynos_probe(struct platform_device *pdev) return 0; err4: - if (pdata && pdata->phy_exit) - pdata->phy_exit(pdev, pdata->phy_type); - clk_disable(clk); clk_put(clk); err3: @@ -185,15 +173,11 @@ err0: static int __devexit dwc3_exynos_remove(struct platform_device *pdev) { struct dwc3_exynos *exynos = platform_get_drvdata(pdev); - struct dwc3_exynos_data *pdata = pdev->dev.platform_data; platform_device_unregister(exynos->dwc3); platform_device_unregister(exynos->usb2_phy); platform_device_unregister(exynos->usb3_phy); - if (pdata && pdata->phy_exit) - pdata->phy_exit(pdev, pdata->phy_type); - clk_disable(exynos->clk); clk_put(exynos->clk);