aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/m66592-udc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/m66592-udc.c')
-rw-r--r--drivers/usb/gadget/m66592-udc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/m66592-udc.c b/drivers/usb/gadget/m66592-udc.c
index 46ba9838c3a0..d5f050d30edf 100644
--- a/drivers/usb/gadget/m66592-udc.c
+++ b/drivers/usb/gadget/m66592-udc.c
@@ -1584,7 +1584,7 @@ static int __init m66592_probe(struct platform_device *pdev)
1584 goto clean_up; 1584 goto clean_up;
1585 } 1585 }
1586 1586
1587 if (pdev->dev.platform_data == NULL) { 1587 if (dev_get_platdata(&pdev->dev) == NULL) {
1588 dev_err(&pdev->dev, "no platform data\n"); 1588 dev_err(&pdev->dev, "no platform data\n");
1589 ret = -ENODEV; 1589 ret = -ENODEV;
1590 goto clean_up; 1590 goto clean_up;
@@ -1598,7 +1598,7 @@ static int __init m66592_probe(struct platform_device *pdev)
1598 goto clean_up; 1598 goto clean_up;
1599 } 1599 }
1600 1600
1601 m66592->pdata = pdev->dev.platform_data; 1601 m66592->pdata = dev_get_platdata(&pdev->dev);
1602 m66592->irq_trigger = ires->flags & IRQF_TRIGGER_MASK; 1602 m66592->irq_trigger = ires->flags & IRQF_TRIGGER_MASK;
1603 1603
1604 spin_lock_init(&m66592->lock); 1604 spin_lock_init(&m66592->lock);