aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/phy/phy-mxs-usb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/phy/phy-mxs-usb.c b/drivers/usb/phy/phy-mxs-usb.c
index cb7113543153..3009ab57614e 100644
--- a/drivers/usb/phy/phy-mxs-usb.c
+++ b/drivers/usb/phy/phy-mxs-usb.c
@@ -106,6 +106,7 @@ struct mxs_phy {
106 struct clk *clk; 106 struct clk *clk;
107 const struct mxs_phy_data *data; 107 const struct mxs_phy_data *data;
108 struct regmap *regmap_anatop; 108 struct regmap *regmap_anatop;
109 int port_id;
109}; 110};
110 111
111static int mxs_phy_hw_init(struct mxs_phy *mxs_phy) 112static int mxs_phy_hw_init(struct mxs_phy *mxs_phy)
@@ -250,6 +251,11 @@ static int mxs_phy_probe(struct platform_device *pdev)
250 } 251 }
251 } 252 }
252 253
254 ret = of_alias_get_id(np, "usbphy");
255 if (ret < 0)
256 dev_dbg(&pdev->dev, "failed to get alias id, errno %d\n", ret);
257 mxs_phy->port_id = ret;
258
253 mxs_phy->phy.io_priv = base; 259 mxs_phy->phy.io_priv = base;
254 mxs_phy->phy.dev = &pdev->dev; 260 mxs_phy->phy.dev = &pdev->dev;
255 mxs_phy->phy.label = DRIVER_NAME; 261 mxs_phy->phy.label = DRIVER_NAME;