usb: phy: initialize the notifier when add a new phy
We need to initialize the notifer before use it. So lets initialize it when add a new phy device to reduce the code redundancy. Signed-off-by: Neil Zhang <zhangwm@marvell.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
@@ -167,8 +167,6 @@ static int mxs_phy_probe(struct platform_device *pdev)
|
||||
mxs_phy->phy.notify_disconnect = mxs_phy_on_disconnect;
|
||||
mxs_phy->phy.type = USB_PHY_TYPE_USB2;
|
||||
|
||||
ATOMIC_INIT_NOTIFIER_HEAD(&mxs_phy->phy.notifier);
|
||||
|
||||
mxs_phy->clk = clk;
|
||||
|
||||
platform_set_drvdata(pdev, &mxs_phy->phy);
|
||||
|
Reference in New Issue
Block a user