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-berlin-sata.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-berlin-sata.c')
-rw-r--r-- | drivers/phy/phy-berlin-sata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/phy-berlin-sata.c b/drivers/phy/phy-berlin-sata.c index c5e688b0899f..5c3a0424aeb4 100644 --- a/drivers/phy/phy-berlin-sata.c +++ b/drivers/phy/phy-berlin-sata.c | |||
@@ -239,7 +239,7 @@ static int phy_berlin_sata_probe(struct platform_device *pdev) | |||
239 | if (!phy_desc) | 239 | if (!phy_desc) |
240 | return -ENOMEM; | 240 | return -ENOMEM; |
241 | 241 | ||
242 | phy = devm_phy_create(dev, &phy_berlin_sata_ops, NULL); | 242 | phy = devm_phy_create(dev, NULL, &phy_berlin_sata_ops, NULL); |
243 | if (IS_ERR(phy)) { | 243 | if (IS_ERR(phy)) { |
244 | dev_err(dev, "failed to create PHY %d\n", phy_id); | 244 | dev_err(dev, "failed to create PHY %d\n", phy_id); |
245 | return PTR_ERR(phy); | 245 | return PTR_ERR(phy); |