summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorJisheng Zhang <jszhang@marvell.com>2013-11-07 03:55:49 +0100
committerFelipe Balbi <balbi@ti.com>2013-11-25 17:54:25 +0100
commit97a27f7340b49d45719b9a3f25489c273e9a6f0d (patch)
treec3c54df28b8c46574d62fb9ec25d11c7e04cffaa /drivers/usb
parentusb: musb: only cancel work if it is initialized (diff)
downloadlinux-97a27f7340b49d45719b9a3f25489c273e9a6f0d.tar.xz
linux-97a27f7340b49d45719b9a3f25489c273e9a6f0d.zip
usb: phy: phy-mxs-usb: set the correct platform drvdata
We need to set mxs_phy rather as the platform drvdata so that we can get the correct mxs_phy in mxs_phy_remove(). Signed-off-by: Jisheng Zhang <jszhang@marvell.com> Acked-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/phy/phy-mxs-usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/phy/phy-mxs-usb.c b/drivers/usb/phy/phy-mxs-usb.c
index fdd33b44dbd3..545844b7e796 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)