aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/fusb300_udc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/fusb300_udc.c')
-rw-r--r--drivers/usb/gadget/fusb300_udc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/fusb300_udc.c b/drivers/usb/gadget/fusb300_udc.c
index b8632d40f8bf..c83f3e165325 100644
--- a/drivers/usb/gadget/fusb300_udc.c
+++ b/drivers/usb/gadget/fusb300_udc.c
@@ -1347,7 +1347,7 @@ static const struct usb_gadget_ops fusb300_gadget_ops = {
1347 1347
1348static int __exit fusb300_remove(struct platform_device *pdev) 1348static int __exit fusb300_remove(struct platform_device *pdev)
1349{ 1349{
1350 struct fusb300 *fusb300 = dev_get_drvdata(&pdev->dev); 1350 struct fusb300 *fusb300 = platform_get_drvdata(pdev);
1351 1351
1352 usb_del_gadget_udc(&fusb300->gadget); 1352 usb_del_gadget_udc(&fusb300->gadget);
1353 iounmap(fusb300->reg); 1353 iounmap(fusb300->reg);
@@ -1416,7 +1416,7 @@ static int __init fusb300_probe(struct platform_device *pdev)
1416 1416
1417 spin_lock_init(&fusb300->lock); 1417 spin_lock_init(&fusb300->lock);
1418 1418
1419 dev_set_drvdata(&pdev->dev, fusb300); 1419 platform_set_drvdata(pdev, fusb300);
1420 1420
1421 fusb300->gadget.ops = &fusb300_gadget_ops; 1421 fusb300->gadget.ops = &fusb300_gadget_ops;
1422 1422