diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 17:02:13 +0900 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-07-30 11:18:53 +0300 |
commit | 19f9e188deb4bbcd5fc588f39dc63bdfa9103827 (patch) | |
tree | 85f46dedb19e8604aa0259cce9a7471761783389 /drivers/usb/phy/phy-samsung-usb3.c | |
parent | e01ee9f509a927158f670408b41127d4166db1c7 (diff) | |
download | blackbird-op-linux-19f9e188deb4bbcd5fc588f39dc63bdfa9103827.tar.gz blackbird-op-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-samsung-usb3.c')
-rw-r--r-- | drivers/usb/phy/phy-samsung-usb3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/phy/phy-samsung-usb3.c b/drivers/usb/phy/phy-samsung-usb3.c index 300e0cf5e31f..c6eb22213de6 100644 --- a/drivers/usb/phy/phy-samsung-usb3.c +++ b/drivers/usb/phy/phy-samsung-usb3.c @@ -231,7 +231,7 @@ static void samsung_usb3phy_shutdown(struct usb_phy *phy) static int samsung_usb3phy_probe(struct platform_device *pdev) { struct samsung_usbphy *sphy; - struct samsung_usbphy_data *pdata = pdev->dev.platform_data; + struct samsung_usbphy_data *pdata = dev_get_platdata(&pdev->dev); struct device *dev = &pdev->dev; struct resource *phy_mem; void __iomem *phy_base; |