提交 c3ab642f 编写于 作者: J Jisheng Zhang 提交者: Kishon Vijay Abraham I

phy: berlin-usb: don't set device's driver_data

After commit 739ae345 ("phy: berlin-usb: Set drvdata for phy and
use it"), we get the address of priv by phy_get_drvdata(), so there's
no need to set device's driver_data any more. This patch removes the
call of platform_set_drvdata().
Signed-off-by: NJisheng Zhang <jszhang@marvell.com>
Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
上级 c7a0b20e
......@@ -193,7 +193,6 @@ static int phy_berlin_usb_probe(struct platform_device *pdev)
return PTR_ERR(phy);
}
platform_set_drvdata(pdev, priv);
phy_set_drvdata(phy, priv);
phy_provider =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册