]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
usb: phy: phy-mxs-usb: set the correct platform drvdata
authorJisheng Zhang <jszhang@marvell.com>
Thu, 7 Nov 2013 02:55:49 +0000 (10:55 +0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 25 Nov 2013 16:54:25 +0000 (10:54 -0600)
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>
drivers/usb/phy/phy-mxs-usb.c

index fdd33b44dbd31b929eb13a2c0bd138570ccebc37..545844b7e7962f809f33812d9167f039b5fbc8d1 100644 (file)
@@ -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)