From patchwork Tue Oct 16 08:45:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 1599521 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 08C7E3FCFC for ; Tue, 16 Oct 2012 08:43:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752681Ab2JPIna (ORCPT ); Tue, 16 Oct 2012 04:43:30 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:47799 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752502Ab2JPIn3 (ORCPT ); Tue, 16 Oct 2012 04:43:29 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MBZ008L99K587R0@mailout2.samsung.com>; Tue, 16 Oct 2012 17:43:23 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.122]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 04.9F.07865.B2E1D705; Tue, 16 Oct 2012 17:43:23 +0900 (KST) X-AuditID: cbfee61a-b7f976d000001eb9-4a-507d1e2b103c Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id C2.9F.07865.A2E1D705; Tue, 16 Oct 2012 17:43:23 +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 <0MBZ001XV9FCS0D0@mmp1.samsung.com>; Tue, 16 Oct 2012 17:43:22 +0900 (KST) From: Vivek Gautam To: linux-usb@vger.kernel.org, linux-omap@vger.kernel.org, devicetree-discuss@lists.ozlabs.org Cc: gregkh@linuxfoundation.org, balbi@ti.com, rob.herring@calxeda.com, thomas.abraham@linaro.org, kishon@ti.com, av.tikhomirov@samsung.com Subject: [PATCH v2 2/2] USB: DWC3: EXYNOS: Remove platform data for dwc3-exynos Date: Tue, 16 Oct 2012 14:15:57 +0530 Message-id: <1350377157-28465-3-git-send-email-gautam.vivek@samsung.com> X-Mailer: git-send-email 1.7.6.5 In-reply-to: <1350377157-28465-1-git-send-email-gautam.vivek@samsung.com> References: <1350377157-28465-1-git-send-email-gautam.vivek@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrELMWRmVeSWpSXmKPExsWyRsSkSldbrjbAYMJmcYvZS/pZLBYta2V2 YPL4vEkugDGKyyYlNSezLLVI3y6BK+PBrDa2gqsCFcf+b2JuYPzG28XIySEhYCJxYMIlJghb TOLCvfVsXYxcHEICSxklNn+ZwQRTdOz/BqjEIkaJ55uOQjmTmSQ+vdjPDFLFJqAr0fR2FyOI LSKQIPHgxXdWkCJmgR5GiRWfGlhAEsIC/hIr5nWDFbEIqEoceraWFcTmFfCQmL/nHyPEOgWJ N7efgQ3lFPCUWHDtAxuILQRUc/vnKWaIXgGJb5MPAc3kAKqXldh0gBlkl4TAbTaJ/x0bWCDm SEocXHGDZQKj8AJGhlWMoqkFyQXFSem5hnrFibnFpXnpesn5uZsYgQF5+t8zqR2MKxssDjEK cDAq8fBmONcECLEmlhVX5h5ilOBgVhLh9ZgIFOJNSaysSi3Kjy8qzUktPsToA3TJRGYp0eR8 YLTklcQbGpuYmxqbWhoZmZma4hBWEudt9kgJEBJITyxJzU5NLUgtghnHxMEp1cBYOo1dZKaF yIq2D5mzFs3ebbrQjzO8OOWeUfXnTwp35dLMuV0NPrY8zteezCHb7FX6P/vopsyHjwWK+60L bwhLLf6+xi4uujYs2lxY4214yP+HLX81Vmwo8eB+eXXutfyNSgebu+MvSr5vD61OjdgZOFU+ 9WC/xDS7iqv3DZwfHflUWvxR00+JpTgj0VCLuag4EQDvL72IdQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprIIsWRmVeSWpSXmKPExsVy+t9jAV1tudoAgwW7WCxmL+lnsVi0rJXZ gcnj8ya5AMaoBkabjNTElNQihdS85PyUzLx0WyXv4HjneFMzA0NdQ0sLcyWFvMTcVFslF58A XbfMHKDRSgpliTmlQKGAxOJiJX07TBNCQ9x0LWAaI3R9Q4LgeowM0EDCGsaMB7Pa2AquClQc +7+JuYHxG28XIyeHhICJxLH/G9ggbDGJC/fWA9lcHEICixglnm86CuVMZpL49GI/M0gVm4Cu RNPbXYwgtohAgsSDF99ZQYqYBXoYJVZ8amABSQgL+EusmNcNVsQioCpx6NlaVhCbV8BDYv6e f4wQ6xQk3tx+BjaUU8BTYsG1D2BnCAHV3P55inkCI+8CRoZVjKKpBckFxUnpuYZ6xYm5xaV5 6XrJ+bmbGMHh/kxqB+PKBotDjAIcjEo8vBnONQFCrIllxZW5hxglOJiVRHg9JgKFeFMSK6tS i/Lji0pzUosPMfoAXTWRWUo0OR8Yi3kl8YbGJuamxqaWJhYmZpY4hJXEeZs9UgKEBNITS1Kz U1MLUotgxjFxcEo1MJZ973oUJBPZs/Zv7dG39zhfRDzmv9S60++PwocP/x7nxsyyz51wecad Z5MV1m/ZqXW3xJVDgT/5bsKybW863C8v8fvM4NY8+dS1JPv9G9f+j/7q0L7kiLjvpiSDo5sc 9O6tExCz5sz9tD9uyyPD5onq3qJzTjY+5dt13bWG/38Mz3ZV0dc9M+8psRRnJBpqMRcVJwIA m+WtuaQCAAA= 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 d11ef49..5a2a73f 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; @@ -150,14 +149,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) { @@ -174,9 +165,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: @@ -192,7 +180,6 @@ 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); @@ -200,9 +187,6 @@ static int __devexit dwc3_exynos_remove(struct platform_device *pdev) dwc3_put_device_id(exynos->dwc3->id); - if (pdata && pdata->phy_exit) - pdata->phy_exit(pdev, pdata->phy_type); - clk_disable(exynos->clk); clk_put(exynos->clk);