aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/phy/phy-generic.c
diff options
context:
space:
mode:
authorNeil Zhang <zhangwm@marvell.com>2013-12-11 14:45:14 +0800
committerFelipe Balbi <balbi@ti.com>2013-12-12 13:43:34 -0600
commit31e322272d9d7da0724ae6e3180478575aa48909 (patch)
treed060afe182c78e1c139d3cc158150ab40c351f9f /drivers/usb/phy/phy-generic.c
parentusb: renesas_usbhs: fifo: request DMAEngine once (diff)
downloadlinux-dev-31e322272d9d7da0724ae6e3180478575aa48909.tar.xz
linux-dev-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-generic.c')
-rw-r--r--drivers/usb/phy/phy-generic.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/phy/phy-generic.c b/drivers/usb/phy/phy-generic.c
index fce3a9e9bb5d..cd19bbc6e3cd 100644
--- a/drivers/usb/phy/phy-generic.c
+++ b/drivers/usb/phy/phy-generic.c
@@ -210,7 +210,6 @@ int usb_phy_gen_create_phy(struct device *dev, struct usb_phy_gen_xceiv *nop,
nop->phy.otg->set_host = nop_set_host;
nop->phy.otg->set_peripheral = nop_set_peripheral;
- ATOMIC_INIT_NOTIFIER_HEAD(&nop->phy.notifier);
return 0;
}
EXPORT_SYMBOL_GPL(usb_phy_gen_create_phy);