summaryrefslogtreecommitdiff
path: root/drivers/usb/phy/phy-omap-control.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-30 12:02:13 +0400
committerFelipe Balbi <balbi@ti.com>2013-07-30 12:18:53 +0400
commit19f9e188deb4bbcd5fc588f39dc63bdfa9103827 (patch)
tree85f46dedb19e8604aa0259cce9a7471761783389 /drivers/usb/phy/phy-omap-control.c
parente01ee9f509a927158f670408b41127d4166db1c7 (diff)
downloadlinux-19f9e188deb4bbcd5fc588f39dc63bdfa9103827.tar.xz
usb: phy: 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/phy/phy-omap-control.c')
-rw-r--r--drivers/usb/phy/phy-omap-control.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/phy/phy-omap-control.c b/drivers/usb/phy/phy-omap-control.c
index 1419ceda9759..a4dda8e12562 100644
--- a/drivers/usb/phy/phy-omap-control.c
+++ b/drivers/usb/phy/phy-omap-control.c
@@ -197,7 +197,8 @@ static int omap_control_usb_probe(struct platform_device *pdev)
{
struct resource *res;
struct device_node *np = pdev->dev.of_node;
- struct omap_control_usb_platform_data *pdata = pdev->dev.platform_data;
+ struct omap_control_usb_platform_data *pdata =
+ dev_get_platdata(&pdev->dev);
control_usb = devm_kzalloc(&pdev->dev, sizeof(*control_usb),
GFP_KERNEL);