summaryrefslogtreecommitdiffstats
path: root/drivers/usb/phy/phy-mxs-usb.c
diff options
context:
space:
mode:
authorNeil Zhang2013-12-11 07:45:14 +0100
committerFelipe Balbi2013-12-12 20:43:34 +0100
commit31e322272d9d7da0724ae6e3180478575aa48909 (patch)
treed060afe182c78e1c139d3cc158150ab40c351f9f /drivers/usb/phy/phy-mxs-usb.c
parentusb: renesas_usbhs: fifo: request DMAEngine once (diff)
downloadkernel-qcow2-linux-31e322272d9d7da0724ae6e3180478575aa48909.tar.gz
kernel-qcow2-linux-31e322272d9d7da0724ae6e3180478575aa48909.tar.xz
kernel-qcow2-linux-31e322272d9d7da0724ae6e3180478575aa48909.zip
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>
Diffstat (limited to 'drivers/usb/phy/phy-mxs-usb.c')
-rw-r--r--drivers/usb/phy/phy-mxs-usb.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/phy/phy-mxs-usb.c b/drivers/usb/phy/phy-mxs-usb.c
index 797c45b9ddab..fa44c0f3e861 100644
--- a/drivers/usb/phy/phy-mxs-usb.c
+++ b/drivers/usb/phy/phy-mxs-usb.c
@@ -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);