aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/phy/phy-qcom-apq8064-sata.c
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2014-07-14 15:55:02 +0530
committerKishon Vijay Abraham I <kishon@ti.com>2014-07-22 12:46:11 +0530
commitf0ed817638b59aa927f1f7e9564dd8796b18dc4f (patch)
tree8d33a1dc9b780a2413565d80a19b649b056fb4cd /drivers/phy/phy-qcom-apq8064-sata.c
parentphy: core: Fix of_phy_provider_lookup to return PHY provider for sub node (diff)
downloadlinux-dev-f0ed817638b59aa927f1f7e9564dd8796b18dc4f.tar.xz
linux-dev-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-qcom-apq8064-sata.c')
-rw-r--r--drivers/phy/phy-qcom-apq8064-sata.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/phy/phy-qcom-apq8064-sata.c b/drivers/phy/phy-qcom-apq8064-sata.c
index c9b4dd6becf5..d7c01aa1f8d7 100644
--- a/drivers/phy/phy-qcom-apq8064-sata.c
+++ b/drivers/phy/phy-qcom-apq8064-sata.c
@@ -228,7 +228,8 @@ static int qcom_apq8064_sata_phy_probe(struct platform_device *pdev)
if (IS_ERR(phy->mmio))
return PTR_ERR(phy->mmio);
- generic_phy = devm_phy_create(dev, &qcom_apq8064_sata_phy_ops, NULL);
+ generic_phy = devm_phy_create(dev, NULL, &qcom_apq8064_sata_phy_ops,
+ NULL);
if (IS_ERR(generic_phy)) {
dev_err(dev, "%s: failed to create phy\n", __func__);
return PTR_ERR(generic_phy);