public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Kishon Vijay Abraham I <kishon@ti.com>
To: Axel Lin <axel.lin@ingics.com>
Cc: Gregory CLEMENT <gregory.clement@free-electrons.com>,
	Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] phy: armada375-usb2: Set drvdata for phy and use it
Date: Wed, 25 Feb 2015 21:08:49 +0530	[thread overview]
Message-ID: <54EDEC89.1020309@ti.com> (raw)
In-Reply-To: <1424787167.5686.1.camel@phoenix>



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);
>

      reply	other threads:[~2015-02-25 15:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54EDEC89.1020309@ti.com \
    --to=kishon@ti.com \
    --cc=axel.lin@ingics.com \
    --cc=gregory.clement@free-electrons.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=thomas.petazzoni@free-electrons.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox