diff options
Diffstat (limited to 'drivers/usb/host/ehci-s5p.c')
-rw-r--r-- | drivers/usb/host/ehci-s5p.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/usb/host/ehci-s5p.c b/drivers/usb/host/ehci-s5p.c index 85b74be202eb..319dcfaa8735 100644 --- a/drivers/usb/host/ehci-s5p.c +++ b/drivers/usb/host/ehci-s5p.c | |||
@@ -85,7 +85,7 @@ static void s5p_setup_vbus_gpio(struct platform_device *pdev) | |||
85 | 85 | ||
86 | static u64 ehci_s5p_dma_mask = DMA_BIT_MASK(32); | 86 | static u64 ehci_s5p_dma_mask = DMA_BIT_MASK(32); |
87 | 87 | ||
88 | static int __devinit s5p_ehci_probe(struct platform_device *pdev) | 88 | static int s5p_ehci_probe(struct platform_device *pdev) |
89 | { | 89 | { |
90 | struct s5p_ehci_platdata *pdata; | 90 | struct s5p_ehci_platdata *pdata; |
91 | struct s5p_ehci_hcd *s5p_ehci; | 91 | struct s5p_ehci_hcd *s5p_ehci; |
@@ -136,7 +136,7 @@ static int __devinit s5p_ehci_probe(struct platform_device *pdev) | |||
136 | goto fail_clk; | 136 | goto fail_clk; |
137 | } | 137 | } |
138 | 138 | ||
139 | err = clk_enable(s5p_ehci->clk); | 139 | err = clk_prepare_enable(s5p_ehci->clk); |
140 | if (err) | 140 | if (err) |
141 | goto fail_clk; | 141 | goto fail_clk; |
142 | 142 | ||
@@ -183,13 +183,13 @@ static int __devinit s5p_ehci_probe(struct platform_device *pdev) | |||
183 | return 0; | 183 | return 0; |
184 | 184 | ||
185 | fail_io: | 185 | fail_io: |
186 | clk_disable(s5p_ehci->clk); | 186 | clk_disable_unprepare(s5p_ehci->clk); |
187 | fail_clk: | 187 | fail_clk: |
188 | usb_put_hcd(hcd); | 188 | usb_put_hcd(hcd); |
189 | return err; | 189 | return err; |
190 | } | 190 | } |
191 | 191 | ||
192 | static int __devexit s5p_ehci_remove(struct platform_device *pdev) | 192 | static int s5p_ehci_remove(struct platform_device *pdev) |
193 | { | 193 | { |
194 | struct s5p_ehci_platdata *pdata = pdev->dev.platform_data; | 194 | struct s5p_ehci_platdata *pdata = pdev->dev.platform_data; |
195 | struct s5p_ehci_hcd *s5p_ehci = platform_get_drvdata(pdev); | 195 | struct s5p_ehci_hcd *s5p_ehci = platform_get_drvdata(pdev); |
@@ -200,7 +200,7 @@ static int __devexit s5p_ehci_remove(struct platform_device *pdev) | |||
200 | if (pdata && pdata->phy_exit) | 200 | if (pdata && pdata->phy_exit) |
201 | pdata->phy_exit(pdev, S5P_USB_PHY_HOST); | 201 | pdata->phy_exit(pdev, S5P_USB_PHY_HOST); |
202 | 202 | ||
203 | clk_disable(s5p_ehci->clk); | 203 | clk_disable_unprepare(s5p_ehci->clk); |
204 | 204 | ||
205 | usb_put_hcd(hcd); | 205 | usb_put_hcd(hcd); |
206 | 206 | ||
@@ -231,7 +231,7 @@ static int s5p_ehci_suspend(struct device *dev) | |||
231 | if (pdata && pdata->phy_exit) | 231 | if (pdata && pdata->phy_exit) |
232 | pdata->phy_exit(pdev, S5P_USB_PHY_HOST); | 232 | pdata->phy_exit(pdev, S5P_USB_PHY_HOST); |
233 | 233 | ||
234 | clk_disable(s5p_ehci->clk); | 234 | clk_disable_unprepare(s5p_ehci->clk); |
235 | 235 | ||
236 | return rc; | 236 | return rc; |
237 | } | 237 | } |
@@ -243,7 +243,7 @@ static int s5p_ehci_resume(struct device *dev) | |||
243 | struct platform_device *pdev = to_platform_device(dev); | 243 | struct platform_device *pdev = to_platform_device(dev); |
244 | struct s5p_ehci_platdata *pdata = pdev->dev.platform_data; | 244 | struct s5p_ehci_platdata *pdata = pdev->dev.platform_data; |
245 | 245 | ||
246 | clk_enable(s5p_ehci->clk); | 246 | clk_prepare_enable(s5p_ehci->clk); |
247 | 247 | ||
248 | if (pdata && pdata->phy_init) | 248 | if (pdata && pdata->phy_init) |
249 | pdata->phy_init(pdev, S5P_USB_PHY_HOST); | 249 | pdata->phy_init(pdev, S5P_USB_PHY_HOST); |
@@ -274,7 +274,7 @@ MODULE_DEVICE_TABLE(of, exynos_ehci_match); | |||
274 | 274 | ||
275 | static struct platform_driver s5p_ehci_driver = { | 275 | static struct platform_driver s5p_ehci_driver = { |
276 | .probe = s5p_ehci_probe, | 276 | .probe = s5p_ehci_probe, |
277 | .remove = __devexit_p(s5p_ehci_remove), | 277 | .remove = s5p_ehci_remove, |
278 | .shutdown = s5p_ehci_shutdown, | 278 | .shutdown = s5p_ehci_shutdown, |
279 | .driver = { | 279 | .driver = { |
280 | .name = "s5p-ehci", | 280 | .name = "s5p-ehci", |