diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 10:02:13 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-07-30 10:18:53 +0200 |
commit | 19f9e188deb4bbcd5fc588f39dc63bdfa9103827 (patch) | |
tree | 85f46dedb19e8604aa0259cce9a7471761783389 /drivers/usb/phy/phy-twl6030-usb.c | |
parent | usb: gadget: use dev_get_platdata() (diff) | |
download | linux-19f9e188deb4bbcd5fc588f39dc63bdfa9103827.tar.xz linux-19f9e188deb4bbcd5fc588f39dc63bdfa9103827.zip |
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-twl6030-usb.c')
-rw-r--r-- | drivers/usb/phy/phy-twl6030-usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/phy/phy-twl6030-usb.c b/drivers/usb/phy/phy-twl6030-usb.c index 1753bd367e0a..16dbc9382678 100644 --- a/drivers/usb/phy/phy-twl6030-usb.c +++ b/drivers/usb/phy/phy-twl6030-usb.c @@ -324,7 +324,7 @@ static int twl6030_usb_probe(struct platform_device *pdev) int status, err; struct device_node *np = pdev->dev.of_node; struct device *dev = &pdev->dev; - struct twl4030_usb_data *pdata = dev->platform_data; + struct twl4030_usb_data *pdata = dev_get_platdata(dev); twl = devm_kzalloc(dev, sizeof *twl, GFP_KERNEL); if (!twl) |