summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/s3c2410_udc.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-30 17:00:51 +0900
committerFelipe Balbi <balbi@ti.com>2013-07-30 11:18:46 +0300
commite01ee9f509a927158f670408b41127d4166db1c7 (patch)
tree8f883d8a3e72f9e451dd209b3cade6f04b70f7d3 /drivers/usb/gadget/s3c2410_udc.c
parentb27f274d358b2bf51fa052c196090f8acd1f35d6 (diff)
downloadlinux-e01ee9f509a927158f670408b41127d4166db1c7.tar.gz
linux-e01ee9f509a927158f670408b41127d4166db1c7.tar.bz2
linux-e01ee9f509a927158f670408b41127d4166db1c7.zip
usb: gadget: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/s3c2410_udc.c')
-rw-r--r--drivers/usb/gadget/s3c2410_udc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/s3c2410_udc.c b/drivers/usb/gadget/s3c2410_udc.c
index 09c4f70c93c4..c72d810e6b36 100644
--- a/drivers/usb/gadget/s3c2410_udc.c
+++ b/drivers/usb/gadget/s3c2410_udc.c
@@ -1809,7 +1809,7 @@ static int s3c2410_udc_probe(struct platform_device *pdev)
}
spin_lock_init(&udc->lock);
- udc_info = pdev->dev.platform_data;
+ udc_info = dev_get_platdata(&pdev->dev);
rsrc_start = S3C2410_PA_USBDEV;
rsrc_len = S3C24XX_SZ_USBDEV;