diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 04:00:51 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-07-30 04:18:46 -0400 |
commit | e01ee9f509a927158f670408b41127d4166db1c7 (patch) | |
tree | 8f883d8a3e72f9e451dd209b3cade6f04b70f7d3 /drivers/usb/gadget/atmel_usba_udc.c | |
parent | b27f274d358b2bf51fa052c196090f8acd1f35d6 (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/atmel_usba_udc.c')
-rw-r--r-- | drivers/usb/gadget/atmel_usba_udc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c index f018017e3a77..40d23384b716 100644 --- a/drivers/usb/gadget/atmel_usba_udc.c +++ b/drivers/usb/gadget/atmel_usba_udc.c | |||
@@ -1931,7 +1931,7 @@ static struct usba_ep * atmel_udc_of_init(struct platform_device *pdev, | |||
1931 | static struct usba_ep * usba_udc_pdata(struct platform_device *pdev, | 1931 | static struct usba_ep * usba_udc_pdata(struct platform_device *pdev, |
1932 | struct usba_udc *udc) | 1932 | struct usba_udc *udc) |
1933 | { | 1933 | { |
1934 | struct usba_platform_data *pdata = pdev->dev.platform_data; | 1934 | struct usba_platform_data *pdata = dev_get_platdata(&pdev->dev); |
1935 | struct usba_ep *eps; | 1935 | struct usba_ep *eps; |
1936 | int i; | 1936 | int i; |
1937 | 1937 | ||