summaryrefslogtreecommitdiff
path: root/drivers/usb/phy/phy-nop.c
diff options
context:
space:
mode:
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 55445e5d72e5..f52b7f89eef1 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;