Skip to content

Commit

Permalink
usb: phy: phy-mxs-usb: set the correct platform drvdata
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jisheng Zhang authored and Felipe Balbi committed Nov 25, 2013
1 parent 66fadea commit 97a27f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/phy/phy-mxs-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 97a27f7

Please sign in to comment.