aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/dwc3-exynos.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/dwc3/dwc3-exynos.c')
-rw-r--r--drivers/usb/dwc3/dwc3-exynos.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3-exynos.c
index 6471d786b3cf..dc35c5476f37 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);
92 92
93static int __devinit dwc3_exynos_probe(struct platform_device *pdev) 93static int __devinit dwc3_exynos_probe(struct platform_device *pdev)
94{ 94{
95 struct dwc3_exynos_data *pdata = pdev->dev.platform_data;
96 struct platform_device *dwc3; 95 struct platform_device *dwc3;
97 struct dwc3_exynos *exynos; 96 struct dwc3_exynos *exynos;
98 struct clk *clk; 97 struct clk *clk;
@@ -145,14 +144,6 @@ static int __devinit dwc3_exynos_probe(struct platform_device *pdev)
145 144
146 clk_enable(exynos->clk); 145 clk_enable(exynos->clk);
147 146
148 /* PHY initialization */
149 if (!pdata) {
150 dev_dbg(&pdev->dev, "missing platform data\n");
151 } else {
152 if (pdata->phy_init)
153 pdata->phy_init(pdev, pdata->phy_type);
154 }
155
156 ret = platform_device_add_resources(dwc3, pdev->resource, 147 ret = platform_device_add_resources(dwc3, pdev->resource,
157 pdev->num_resources); 148 pdev->num_resources);
158 if (ret) { 149 if (ret) {
@@ -169,9 +160,6 @@ static int __devinit dwc3_exynos_probe(struct platform_device *pdev)
169 return 0; 160 return 0;
170 161
171err4: 162err4:
172 if (pdata && pdata->phy_exit)
173 pdata->phy_exit(pdev, pdata->phy_type);
174
175 clk_disable(clk); 163 clk_disable(clk);
176 clk_put(clk); 164 clk_put(clk);
177err3: 165err3:
@@ -185,15 +173,11 @@ err0:
185static int __devexit dwc3_exynos_remove(struct platform_device *pdev) 173static int __devexit dwc3_exynos_remove(struct platform_device *pdev)
186{ 174{
187 struct dwc3_exynos *exynos = platform_get_drvdata(pdev); 175 struct dwc3_exynos *exynos = platform_get_drvdata(pdev);
188 struct dwc3_exynos_data *pdata = pdev->dev.platform_data;
189 176
190 platform_device_unregister(exynos->dwc3); 177 platform_device_unregister(exynos->dwc3);
191 platform_device_unregister(exynos->usb2_phy); 178 platform_device_unregister(exynos->usb2_phy);
192 platform_device_unregister(exynos->usb3_phy); 179 platform_device_unregister(exynos->usb3_phy);
193 180
194 if (pdata && pdata->phy_exit)
195 pdata->phy_exit(pdev, pdata->phy_type);
196
197 clk_disable(exynos->clk); 181 clk_disable(exynos->clk);
198 clk_put(exynos->clk); 182 clk_put(exynos->clk);
199 183