diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-05-23 19:19:22 +0900 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-05-28 20:16:56 +0300 |
commit | dae8eadf2a8a125dbbfc067a7ff16cf600b1023b (patch) | |
tree | 48219c4fc8332025107275db6d37e7fb0be22e99 /drivers/usb/gadget/mv_u3d_core.c | |
parent | 6d3d61f8219455c047777e2f7954cd3cbac2ec4e (diff) | |
download | op-kernel-dev-dae8eadf2a8a125dbbfc067a7ff16cf600b1023b.zip op-kernel-dev-dae8eadf2a8a125dbbfc067a7ff16cf600b1023b.tar.gz |
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/mv_u3d_core.c')
-rw-r--r-- | drivers/usb/gadget/mv_u3d_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/mv_u3d_core.c b/drivers/usb/gadget/mv_u3d_core.c index 751b17a..07fdb3e 100644 --- a/drivers/usb/gadget/mv_u3d_core.c +++ b/drivers/usb/gadget/mv_u3d_core.c @@ -2050,7 +2050,7 @@ static SIMPLE_DEV_PM_OPS(mv_u3d_pm_ops, mv_u3d_suspend, mv_u3d_resume); static void mv_u3d_shutdown(struct platform_device *dev) { - struct mv_u3d *u3d = dev_get_drvdata(&dev->dev); + struct mv_u3d *u3d = platform_get_drvdata(dev); u32 tmp; tmp = ioread32(&u3d->op_regs->usbcmd); |