From patchwork Sat Oct 13 13:47:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 1589141 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 6E2A83FD9C for ; Sat, 13 Oct 2012 13:42:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752807Ab2JMNmS (ORCPT ); Sat, 13 Oct 2012 09:42:18 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:48839 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750925Ab2JMNmQ (ORCPT ); Sat, 13 Oct 2012 09:42:16 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MBU00KFT3E8JID0@mailout3.samsung.com>; Sat, 13 Oct 2012 22:42:15 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.123]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 04.09.18144.7BF69705; Sat, 13 Oct 2012 22:42:15 +0900 (KST) X-AuditID: cbfee61b-b7fd46d0000046e0-55-50796fb748ce Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 63.09.18144.7BF69705; Sat, 13 Oct 2012 22:42:15 +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 <0MBU00D993E1Z1A0@mmp1.samsung.com>; Sat, 13 Oct 2012 22:42:15 +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 2/2] USB: DWC3: EXYNOS: Remove platform data for dwc3-exynos Date: Sat, 13 Oct 2012 19:17:32 +0530 Message-id: <1350136052-25583-3-git-send-email-gautam.vivek@samsung.com> X-Mailer: git-send-email 1.7.6.5 In-reply-to: <1350136052-25583-1-git-send-email-gautam.vivek@samsung.com> References: <1350136052-25583-1-git-send-email-gautam.vivek@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrALMWRmVeSWpSXmKPExsWyRsSkWnd7fmWAwcZeJYvZS/pZLBYta2V2 YPL4vEkugDGKyyYlNSezLLVI3y6BK+Ph9z9sBVcFKvZd/8XcwPiNt4uRk0NCwETi4N2HrBC2 mMSFe+vZuhi5OIQEljJKzHqyjLmLkQOsaNURfYj4IkaJ5gM7oIomM0l0zVjKBtLNJqAr0fR2 FyOILSKQIPHgxXdWkCJmgR5GiRWfGlhAJgkL+Eg8+xMLUsMioCox495qsHpeAQ+Jd19vsUNc oSDx5vYzZhCbU8BTovn8B7D5QkA1B6btZIHoFZD4NvkQC8RxshKbDjCDrJIQuM8msfbyUqg5 khIHV9xgmcAovICRYRWjaGpBckFxUnqukV5xYm5xaV66XnJ+7iZGYDCe/vdMegfjqgaLQ4wC HIxKPLy3uisChFgTy4orcw8xSnAwK4nwmmZVBgjxpiRWVqUW5ccXleakFh9i9AG6ZCKzlGhy PjBS8kriDY1NzE2NTS2NjMxMTXEIK4nzNnukBAgJpCeWpGanphakFsGMY+LglGpgZDNQzlsY 6vhi218rlxQlmRaf9lBtO2eDi71aUyz/VJxOW74+atYFpiPrO/f8YZyqOU1phcfTE71G9zf8 2ZQ04RR/3uOX8yXlzssdZuqp9crc0PjrYofeCcfFq8VuHXww+7HsrQNCyRd69TMqo99lTPV5 HhZ4LC6nYXLym9NHNXMZZyi7vNyjrcRSnJFoqMVcVJwIAJSbp9FzAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnkeLIzCtJLcpLzFFi42I5/e+xgO72/MoAg5ePRC1mL+lnsVi0rJXZ gcnj8ya5AMaoBkabjNTElNQihdS85PyUzLx0WyXv4HjneFMzA0NdQ0sLcyWFvMTcVFslF58A XbfMHKDRSgpliTmlQKGAxOJiJX07TBNCQ9x0LWAaI3R9Q4LgeowM0EDCGsaMh9//sBVcFajY d/0XcwPjN94uRg4OCQETiVVH9LsYOYFMMYkL99azdTFycQgJLGKUaD6wA8qZzCTRNWMpG0gV m4CuRNPbXYwgtohAgsSDF99ZQYqYBXoYJVZ8amABmSos4CPx7E8sSA2LgKrEjHurwep5BTwk 3n29xQ6xTUHize1nzCA2p4CnRPP5D2DzhYBqDkzbyTKBkXcBI8MqRtHUguSC4qT0XCO94sTc 4tK8dL3k/NxNjOBQfya9g3FVg8UhRgEORiUe3lvdFQFCrIllxZW5hxglOJiVRHhNsyoDhHhT EiurUovy44tKc1KLDzH6AF01kVlKNDkfGId5JfGGxibmpsamliYWJmaWOISVxHmbPVIChATS E0tSs1NTC1KLYMYxcXBKNTA29v3ga9kmfDglatsUUWXGfdP1lN85P12gvmzXsosx0Z4lzmF2 1zxnXfrDL/ntj49hWpzblvcvN00r1nQ8WrDPhm+1YL3yxHMqcq17P+qyVTgLsUx60fRtulRr bVf1+54PCc89NzIkfZvo0JoicevXjyfSHdGCyhIhFS6LJzemX2x4vnjqvb1KLMUZiYZazEXF iQDTiolHogIAAA== 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 78e6219..2796c1a 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; @@ -152,14 +151,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) { @@ -176,9 +167,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: @@ -194,7 +182,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); @@ -202,9 +189,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);