summaryrefslogtreecommitdiffstats
path: root/drivers/usb/phy/phy-ab8500-usb.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-ab8500-usb.c
parent1b2e21b082a1c67cd7861bd86c4a46a3f0f348ea (diff)
downloadlinux-31e322272d9d7da0724ae6e3180478575aa48909.tar.bz2
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-ab8500-usb.c')
-rw-r--r--drivers/usb/phy/phy-ab8500-usb.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/phy/phy-ab8500-usb.c b/drivers/usb/phy/phy-ab8500-usb.c
index 087402350b6d..11ab2c45e462 100644
--- a/drivers/usb/phy/phy-ab8500-usb.c
+++ b/drivers/usb/phy/phy-ab8500-usb.c
@@ -1415,8 +1415,6 @@ static int ab8500_usb_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, ab);
- ATOMIC_INIT_NOTIFIER_HEAD(&ab->phy.notifier);
-
/* all: Disable phy when called from set_host and set_peripheral */
INIT_WORK(&ab->phy_dis_work, ab8500_usb_phy_disable_work);