Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97a27f73 authored by Jisheng Zhang's avatar Jisheng Zhang Committed by Felipe Balbi
Browse files

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: default avatarJisheng Zhang <jszhang@marvell.com>
Acked-by: default avatarPeter Chen <peter.chen@freescale.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 66fadea5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)