diff options
author | Kishon Vijay Abraham I <kishon@ti.com> | 2014-07-14 06:25:02 -0400 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2014-07-22 03:16:11 -0400 |
commit | f0ed817638b59aa927f1f7e9564dd8796b18dc4f (patch) | |
tree | 8d33a1dc9b780a2413565d80a19b649b056fb4cd /drivers/phy/phy-samsung-usb2.c | |
parent | 2a4c37016ca96e413cd352985d3a0db8cfb7716c (diff) |
phy: core: Let node ptr of PHY point to PHY and not of PHY provider
In case of multi-phy PHY providers, each PHY should be modeled as a sub
node of the PHY provider. Then each PHY will have a different node pointer
(node pointer of sub node) than that of PHY provider. Added this provision
in the PHY core.
Also fixed all drivers to use the updated API.
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/phy/phy-samsung-usb2.c')
-rw-r--r-- | drivers/phy/phy-samsung-usb2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/phy/phy-samsung-usb2.c b/drivers/phy/phy-samsung-usb2.c index 16aae7a285f0..ae30640a411d 100644 --- a/drivers/phy/phy-samsung-usb2.c +++ b/drivers/phy/phy-samsung-usb2.c | |||
@@ -196,7 +196,8 @@ static int samsung_usb2_phy_probe(struct platform_device *pdev) | |||
196 | struct samsung_usb2_phy_instance *p = &drv->instances[i]; | 196 | struct samsung_usb2_phy_instance *p = &drv->instances[i]; |
197 | 197 | ||
198 | dev_dbg(dev, "Creating phy \"%s\"\n", label); | 198 | dev_dbg(dev, "Creating phy \"%s\"\n", label); |
199 | p->phy = devm_phy_create(dev, &samsung_usb2_phy_ops, NULL); | 199 | p->phy = devm_phy_create(dev, NULL, &samsung_usb2_phy_ops, |
200 | NULL); | ||
200 | if (IS_ERR(p->phy)) { | 201 | if (IS_ERR(p->phy)) { |
201 | dev_err(drv->dev, "Failed to create usb2_phy \"%s\"\n", | 202 | dev_err(drv->dev, "Failed to create usb2_phy \"%s\"\n", |
202 | label); | 203 | label); |