diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-05-23 06:19:22 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-05-28 13:16:56 -0400 |
commit | dae8eadf2a8a125dbbfc067a7ff16cf600b1023b (patch) | |
tree | 48219c4fc8332025107275db6d37e7fb0be22e99 /drivers/usb/gadget/m66592-udc.c | |
parent | 6d3d61f8219455c047777e2f7954cd3cbac2ec4e (diff) |
usb: gadget: use platform_{get,set}_drvdata()
Use the wrapper functions for getting and setting the driver data using
platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev,
so we can directly pass a struct platform_device.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/m66592-udc.c')
-rw-r--r-- | drivers/usb/gadget/m66592-udc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/m66592-udc.c b/drivers/usb/gadget/m66592-udc.c index 51cfe72da5bb..46ba9838c3a0 100644 --- a/drivers/usb/gadget/m66592-udc.c +++ b/drivers/usb/gadget/m66592-udc.c | |||
@@ -1533,7 +1533,7 @@ static const struct usb_gadget_ops m66592_gadget_ops = { | |||
1533 | 1533 | ||
1534 | static int __exit m66592_remove(struct platform_device *pdev) | 1534 | static int __exit m66592_remove(struct platform_device *pdev) |
1535 | { | 1535 | { |
1536 | struct m66592 *m66592 = dev_get_drvdata(&pdev->dev); | 1536 | struct m66592 *m66592 = platform_get_drvdata(pdev); |
1537 | 1537 | ||
1538 | usb_del_gadget_udc(&m66592->gadget); | 1538 | usb_del_gadget_udc(&m66592->gadget); |
1539 | 1539 | ||
@@ -1602,7 +1602,7 @@ static int __init m66592_probe(struct platform_device *pdev) | |||
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); |
1605 | dev_set_drvdata(&pdev->dev, m66592); | 1605 | platform_set_drvdata(pdev, m66592); |
1606 | 1606 | ||
1607 | m66592->gadget.ops = &m66592_gadget_ops; | 1607 | m66592->gadget.ops = &m66592_gadget_ops; |
1608 | m66592->gadget.max_speed = USB_SPEED_HIGH; | 1608 | m66592->gadget.max_speed = USB_SPEED_HIGH; |