diff options
Diffstat (limited to 'drivers/usb/musb/ux500.c')
-rw-r--r-- | drivers/usb/musb/ux500.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/drivers/usb/musb/ux500.c b/drivers/usb/musb/ux500.c index f7e04bf34a13..aa09dd417b94 100644 --- a/drivers/usb/musb/ux500.c +++ b/drivers/usb/musb/ux500.c | |||
@@ -37,7 +37,7 @@ struct ux500_glue { | |||
37 | 37 | ||
38 | static int ux500_musb_init(struct musb *musb) | 38 | static int ux500_musb_init(struct musb *musb) |
39 | { | 39 | { |
40 | musb->xceiv = otg_get_transceiver(); | 40 | musb->xceiv = usb_get_transceiver(); |
41 | if (!musb->xceiv) { | 41 | if (!musb->xceiv) { |
42 | pr_err("HS USB OTG: no transceiver configured\n"); | 42 | pr_err("HS USB OTG: no transceiver configured\n"); |
43 | return -ENODEV; | 43 | return -ENODEV; |
@@ -48,7 +48,7 @@ static int ux500_musb_init(struct musb *musb) | |||
48 | 48 | ||
49 | static int ux500_musb_exit(struct musb *musb) | 49 | static int ux500_musb_exit(struct musb *musb) |
50 | { | 50 | { |
51 | otg_put_transceiver(musb->xceiv); | 51 | usb_put_transceiver(musb->xceiv); |
52 | 52 | ||
53 | return 0; | 53 | return 0; |
54 | } | 54 | } |
@@ -58,7 +58,7 @@ static const struct musb_platform_ops ux500_ops = { | |||
58 | .exit = ux500_musb_exit, | 58 | .exit = ux500_musb_exit, |
59 | }; | 59 | }; |
60 | 60 | ||
61 | static int __init ux500_probe(struct platform_device *pdev) | 61 | static int __devinit ux500_probe(struct platform_device *pdev) |
62 | { | 62 | { |
63 | struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data; | 63 | struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data; |
64 | struct platform_device *musb; | 64 | struct platform_device *musb; |
@@ -141,7 +141,7 @@ err0: | |||
141 | return ret; | 141 | return ret; |
142 | } | 142 | } |
143 | 143 | ||
144 | static int __exit ux500_remove(struct platform_device *pdev) | 144 | static int __devexit ux500_remove(struct platform_device *pdev) |
145 | { | 145 | { |
146 | struct ux500_glue *glue = platform_get_drvdata(pdev); | 146 | struct ux500_glue *glue = platform_get_drvdata(pdev); |
147 | 147 | ||
@@ -160,7 +160,7 @@ static int ux500_suspend(struct device *dev) | |||
160 | struct ux500_glue *glue = dev_get_drvdata(dev); | 160 | struct ux500_glue *glue = dev_get_drvdata(dev); |
161 | struct musb *musb = glue_to_musb(glue); | 161 | struct musb *musb = glue_to_musb(glue); |
162 | 162 | ||
163 | otg_set_suspend(musb->xceiv, 1); | 163 | usb_phy_set_suspend(musb->xceiv, 1); |
164 | clk_disable(glue->clk); | 164 | clk_disable(glue->clk); |
165 | 165 | ||
166 | return 0; | 166 | return 0; |
@@ -178,7 +178,7 @@ static int ux500_resume(struct device *dev) | |||
178 | return ret; | 178 | return ret; |
179 | } | 179 | } |
180 | 180 | ||
181 | otg_set_suspend(musb->xceiv, 0); | 181 | usb_phy_set_suspend(musb->xceiv, 0); |
182 | 182 | ||
183 | return 0; | 183 | return 0; |
184 | } | 184 | } |
@@ -194,7 +194,8 @@ static const struct dev_pm_ops ux500_pm_ops = { | |||
194 | #endif | 194 | #endif |
195 | 195 | ||
196 | static struct platform_driver ux500_driver = { | 196 | static struct platform_driver ux500_driver = { |
197 | .remove = __exit_p(ux500_remove), | 197 | .probe = ux500_probe, |
198 | .remove = __devexit_p(ux500_remove), | ||
198 | .driver = { | 199 | .driver = { |
199 | .name = "musb-ux500", | 200 | .name = "musb-ux500", |
200 | .pm = DEV_PM_OPS, | 201 | .pm = DEV_PM_OPS, |
@@ -207,9 +208,9 @@ MODULE_LICENSE("GPL v2"); | |||
207 | 208 | ||
208 | static int __init ux500_init(void) | 209 | static int __init ux500_init(void) |
209 | { | 210 | { |
210 | return platform_driver_probe(&ux500_driver, ux500_probe); | 211 | return platform_driver_register(&ux500_driver); |
211 | } | 212 | } |
212 | subsys_initcall(ux500_init); | 213 | module_init(ux500_init); |
213 | 214 | ||
214 | static void __exit ux500_exit(void) | 215 | static void __exit ux500_exit(void) |
215 | { | 216 | { |