From: Jisheng Zhang Date: Thu, 7 Nov 2013 02:55:49 +0000 (+0800) Subject: usb: phy: phy-mxs-usb: set the correct platform drvdata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=97a27f7340b49d45719b9a3f25489c273e9a6f0d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Peter Chen Signed-off-by: Felipe Balbi --- 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)