summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/blackfin.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-30 10:03:12 +0200
committerFelipe Balbi <balbi@ti.com>2013-07-30 10:21:54 +0200
commitc1a7d67c1901347bdb3d06536cd69d018fbf2c4b (patch)
tree6819e5d478f2ceca17ab0eaeb568ee99fd09c79f /drivers/usb/musb/blackfin.c
parentusb: phy: use dev_get_platdata() (diff)
downloadlinux-c1a7d67c1901347bdb3d06536cd69d018fbf2c4b.tar.xz
linux-c1a7d67c1901347bdb3d06536cd69d018fbf2c4b.zip
usb: musb: 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/musb/blackfin.c')
-rw-r--r--drivers/usb/musb/blackfin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/blackfin.c b/drivers/usb/musb/blackfin.c
index 6ba8439bd5a6..3e63379ec469 100644
--- a/drivers/usb/musb/blackfin.c
+++ b/drivers/usb/musb/blackfin.c
@@ -451,7 +451,7 @@ static u64 bfin_dmamask = DMA_BIT_MASK(32);
static int bfin_probe(struct platform_device *pdev)
{
struct resource musb_resources[2];
- struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data;
+ struct musb_hdrc_platform_data *pdata = dev_get_platdata(&pdev->dev);
struct platform_device *musb;
struct bfin_glue *glue;