diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 17:00:51 +0900 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-07-30 11:18:46 +0300 |
commit | e01ee9f509a927158f670408b41127d4166db1c7 (patch) | |
tree | 8f883d8a3e72f9e451dd209b3cade6f04b70f7d3 /drivers/usb/gadget/pxa27x_udc.c | |
parent | b27f274d358b2bf51fa052c196090f8acd1f35d6 (diff) | |
download | op-kernel-dev-e01ee9f509a927158f670408b41127d4166db1c7.zip op-kernel-dev-e01ee9f509a927158f670408b41127d4166db1c7.tar.gz |
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/pxa27x_udc.c')
-rw-r--r-- | drivers/usb/gadget/pxa27x_udc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/pxa27x_udc.c b/drivers/usb/gadget/pxa27x_udc.c index 41cea95..3c97da7 100644 --- a/drivers/usb/gadget/pxa27x_udc.c +++ b/drivers/usb/gadget/pxa27x_udc.c @@ -2422,7 +2422,7 @@ static int pxa_udc_probe(struct platform_device *pdev) return udc->irq; udc->dev = &pdev->dev; - udc->mach = pdev->dev.platform_data; + udc->mach = dev_get_platdata(&pdev->dev); udc->transceiver = usb_get_phy(USB_PHY_TYPE_USB2); gpio = udc->mach->gpio_pullup; |