aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/fsl_mxc_udc.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-30 04:00:51 -0400
committerFelipe Balbi <balbi@ti.com>2013-07-30 04:18:46 -0400
commite01ee9f509a927158f670408b41127d4166db1c7 (patch)
tree8f883d8a3e72f9e451dd209b3cade6f04b70f7d3 /drivers/usb/gadget/fsl_mxc_udc.c
parentb27f274d358b2bf51fa052c196090f8acd1f35d6 (diff)
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/fsl_mxc_udc.c')
-rw-r--r--drivers/usb/gadget/fsl_mxc_udc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/fsl_mxc_udc.c b/drivers/usb/gadget/fsl_mxc_udc.c
index d3bd7b095ba3..9b140fc4d3bc 100644
--- a/drivers/usb/gadget/fsl_mxc_udc.c
+++ b/drivers/usb/gadget/fsl_mxc_udc.c
@@ -33,7 +33,7 @@ int fsl_udc_clk_init(struct platform_device *pdev)
33 unsigned long freq; 33 unsigned long freq;
34 int ret; 34 int ret;
35 35
36 pdata = pdev->dev.platform_data; 36 pdata = dev_get_platdata(&pdev->dev);
37 37
38 mxc_ipg_clk = devm_clk_get(&pdev->dev, "ipg"); 38 mxc_ipg_clk = devm_clk_get(&pdev->dev, "ipg");
39 if (IS_ERR(mxc_ipg_clk)) { 39 if (IS_ERR(mxc_ipg_clk)) {
@@ -80,7 +80,7 @@ eclkrate:
80 80
81int fsl_udc_clk_finalize(struct platform_device *pdev) 81int fsl_udc_clk_finalize(struct platform_device *pdev)
82{ 82{
83 struct fsl_usb2_platform_data *pdata = pdev->dev.platform_data; 83 struct fsl_usb2_platform_data *pdata = dev_get_platdata(&pdev->dev);
84 int ret = 0; 84 int ret = 0;
85 85
86 /* workaround ENGcm09152 for i.MX35 */ 86 /* workaround ENGcm09152 for i.MX35 */