From: Jisheng Zhang <jszhang@marvell.com>
To: Shawn Guo <shawn.guo@linaro.org>
Cc: "balbi@ti.com" <balbi@ti.com>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] usb: phy: phy-mxs-usb: set the correct platform drvdata
Date: Thu, 7 Nov 2013 10:36:07 +0800 [thread overview]
Message-ID: <20131107103607.53489c5d@xhacker> (raw)
In-Reply-To: <20131107023446.GC5994@S2101-09.ap.freescale.net>
On Wed, 6 Nov 2013 18:34:47 -0800
Shawn Guo <shawn.guo@linaro.org> wrote:
> On Thu, Nov 07, 2013 at 10:26:20AM +0800, Jisheng Zhang wrote:
> > We need to set mxs_phy rather as the platform drvdata so that we can get
> > the correct mxs_phy in mxs_phy_remove().
> >
> > Change-Id: I6e1753cc978e2ed3fbb3d1865be0c54031d337d2
> > Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
>
> Acked-by: Shawn Guo <shawn.guo@linaro.org>
>
> Change-Id should be dropped though.
OOPs, sorry, I should take care of that. I'll remind myself every time.
Thank you for your pointing out
Jisheng
>
> Shawn
>
> > ---
> > drivers/usb/phy/phy-mxs-usb.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/usb/phy/phy-mxs-usb.c b/drivers/usb/phy/phy-mxs-usb.c
> > index fdd33b4..545844b 100644
> > --- a/drivers/usb/phy/phy-mxs-usb.c
> > +++ b/drivers/usb/phy/phy-mxs-usb.c
> > @@ -164,7 +164,7 @@ static int mxs_phy_probe(struct platform_device *pdev)
> >
> > mxs_phy->clk = clk;
> >
> > - platform_set_drvdata(pdev, &mxs_phy->phy);
> > + platform_set_drvdata(pdev, mxs_phy);
> >
> > ret = usb_add_phy_dev(&mxs_phy->phy);
> > if (ret)
> > --
> > 1.8.4.2
> >
>
next prev parent reply other threads:[~2013-11-07 2:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-07 2:26 [PATCH] usb: phy: phy-mxs-usb: set the correct platform drvdata Jisheng Zhang
2013-11-07 2:34 ` Shawn Guo
2013-11-07 2:36 ` Jisheng Zhang [this message]
2013-11-07 2:47 ` Felipe Balbi
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=20131107103607.53489c5d@xhacker \
--to=jszhang@marvell.com \
--cc=balbi@ti.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=shawn.guo@linaro.org \
/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 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.