* [PATCH] phy: armada375-usb2: Set drvdata for phy and use it
@ 2015-02-24 14:12 Axel Lin
2015-02-25 15:38 ` Kishon Vijay Abraham I
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2015-02-24 14:12 UTC (permalink / raw)
To: Kishon Vijay Abraham I; +Cc: Gregory CLEMENT, Thomas Petazzoni, linux-kernel
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
drivers/phy/phy-armada375-usb2.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/phy/phy-armada375-usb2.c b/drivers/phy/phy-armada375-usb2.c
index 7c99ca2..8ccc395 100644
--- a/drivers/phy/phy-armada375-usb2.c
+++ b/drivers/phy/phy-armada375-usb2.c
@@ -37,7 +37,7 @@ static int armada375_usb_phy_init(struct phy *phy)
struct armada375_cluster_phy *cluster_phy;
u32 reg;
- cluster_phy = dev_get_drvdata(phy->dev.parent);
+ cluster_phy = phy_get_drvdata(phy);
if (!cluster_phy)
return -ENODEV;
@@ -131,6 +131,7 @@ static int armada375_usb_phy_probe(struct platform_device *pdev)
cluster_phy->reg = usb_cluster_base;
dev_set_drvdata(dev, cluster_phy);
+ phy_set_drvdata(phy, cluster_phy);
phy_provider = devm_of_phy_provider_register(&pdev->dev,
armada375_usb_phy_xlate);
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] phy: armada375-usb2: Set drvdata for phy and use it
2015-02-24 14:12 [PATCH] phy: armada375-usb2: Set drvdata for phy and use it Axel Lin
@ 2015-02-25 15:38 ` Kishon Vijay Abraham I
0 siblings, 0 replies; 2+ messages in thread
From: Kishon Vijay Abraham I @ 2015-02-25 15:38 UTC (permalink / raw)
To: Axel Lin; +Cc: Gregory CLEMENT, Thomas Petazzoni, linux-kernel
On Tuesday 24 February 2015 07:42 PM, Axel Lin wrote:
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
need a commit msg pls.
-Kishon
> ---
> drivers/phy/phy-armada375-usb2.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/phy/phy-armada375-usb2.c b/drivers/phy/phy-armada375-usb2.c
> index 7c99ca2..8ccc395 100644
> --- a/drivers/phy/phy-armada375-usb2.c
> +++ b/drivers/phy/phy-armada375-usb2.c
> @@ -37,7 +37,7 @@ static int armada375_usb_phy_init(struct phy *phy)
> struct armada375_cluster_phy *cluster_phy;
> u32 reg;
>
> - cluster_phy = dev_get_drvdata(phy->dev.parent);
> + cluster_phy = phy_get_drvdata(phy);
> if (!cluster_phy)
> return -ENODEV;
>
> @@ -131,6 +131,7 @@ static int armada375_usb_phy_probe(struct platform_device *pdev)
> cluster_phy->reg = usb_cluster_base;
>
> dev_set_drvdata(dev, cluster_phy);
> + phy_set_drvdata(phy, cluster_phy);
>
> phy_provider = devm_of_phy_provider_register(&pdev->dev,
> armada375_usb_phy_xlate);
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-25 15:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-24 14:12 [PATCH] phy: armada375-usb2: Set drvdata for phy and use it Axel Lin
2015-02-25 15:38 ` Kishon Vijay Abraham I
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.