summaryrefslogtreecommitdiffstats
path: root/drivers/usb/phy/phy-nop.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-30 17:02:13 +0900
committerFelipe Balbi <balbi@ti.com>2013-07-30 11:18:53 +0300
commit19f9e188deb4bbcd5fc588f39dc63bdfa9103827 (patch)
tree85f46dedb19e8604aa0259cce9a7471761783389 /drivers/usb/phy/phy-nop.c
parente01ee9f509a927158f670408b41127d4166db1c7 (diff)
downloadop-kernel-dev-19f9e188deb4bbcd5fc588f39dc63bdfa9103827.zip
op-kernel-dev-19f9e188deb4bbcd5fc588f39dc63bdfa9103827.tar.gz
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-nop.c')
-rw-r--r--drivers/usb/phy/phy-nop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/phy/phy-nop.c b/drivers/usb/phy/phy-nop.c
index 55445e5d..f52b7f8 100644
--- a/drivers/usb/phy/phy-nop.c
+++ b/drivers/usb/phy/phy-nop.c
@@ -142,7 +142,8 @@ static int nop_set_host(struct usb_otg *otg, struct usb_bus *host)
static int nop_usb_xceiv_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
- struct nop_usb_xceiv_platform_data *pdata = pdev->dev.platform_data;
+ struct nop_usb_xceiv_platform_data *pdata =
+ dev_get_platdata(&pdev->dev);
struct nop_usb_xceiv *nop;
enum usb_phy_type type = USB_PHY_TYPE_USB2;
int err;
OpenPOWER on IntegriCloud