diff options
author | Kishon Vijay Abraham I <kishon@ti.com> | 2014-07-14 12:25:02 +0200 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2014-07-22 09:16:11 +0200 |
commit | f0ed817638b59aa927f1f7e9564dd8796b18dc4f (patch) | |
tree | 8d33a1dc9b780a2413565d80a19b649b056fb4cd /drivers/phy/phy-mvebu-sata.c | |
parent | phy: core: Fix of_phy_provider_lookup to return PHY provider for sub node (diff) | |
download | linux-f0ed817638b59aa927f1f7e9564dd8796b18dc4f.tar.xz linux-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-mvebu-sata.c')
-rw-r--r-- | drivers/phy/phy-mvebu-sata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/phy-mvebu-sata.c b/drivers/phy/phy-mvebu-sata.c index d70ecd6a1b3f..cc3c0e166daf 100644 --- a/drivers/phy/phy-mvebu-sata.c +++ b/drivers/phy/phy-mvebu-sata.c @@ -99,7 +99,7 @@ static int phy_mvebu_sata_probe(struct platform_device *pdev) if (IS_ERR(priv->clk)) return PTR_ERR(priv->clk); - phy = devm_phy_create(&pdev->dev, &phy_mvebu_sata_ops, NULL); + phy = devm_phy_create(&pdev->dev, NULL, &phy_mvebu_sata_ops, NULL); if (IS_ERR(phy)) return PTR_ERR(phy); |