diff options
author | Kishon Vijay Abraham I <kishon@ti.com> | 2014-07-14 15:55:02 +0530 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2014-07-22 12:46:11 +0530 |
commit | f0ed817638b59aa927f1f7e9564dd8796b18dc4f (patch) | |
tree | 8d33a1dc9b780a2413565d80a19b649b056fb4cd /drivers/phy/phy-sun4i-usb.c | |
parent | 2a4c37016ca96e413cd352985d3a0db8cfb7716c (diff) | |
download | linux-stable-f0ed817638b59aa927f1f7e9564dd8796b18dc4f.tar.gz linux-stable-f0ed817638b59aa927f1f7e9564dd8796b18dc4f.tar.bz2 linux-stable-f0ed817638b59aa927f1f7e9564dd8796b18dc4f.zip |
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-sun4i-usb.c')
-rw-r--r-- | drivers/phy/phy-sun4i-usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/phy-sun4i-usb.c b/drivers/phy/phy-sun4i-usb.c index 7a4ea552f621..61ebea49709b 100644 --- a/drivers/phy/phy-sun4i-usb.c +++ b/drivers/phy/phy-sun4i-usb.c @@ -295,7 +295,7 @@ static int sun4i_usb_phy_probe(struct platform_device *pdev) return PTR_ERR(phy->pmu); } - phy->phy = devm_phy_create(dev, &sun4i_usb_phy_ops, NULL); + phy->phy = devm_phy_create(dev, NULL, &sun4i_usb_phy_ops, NULL); if (IS_ERR(phy->phy)) { dev_err(dev, "failed to create PHY %d\n", i); return PTR_ERR(phy->phy); |