diff options
author | Neil Zhang <zhangwm@marvell.com> | 2013-12-11 07:45:14 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-12-12 20:43:34 +0100 |
commit | 31e322272d9d7da0724ae6e3180478575aa48909 (patch) | |
tree | d060afe182c78e1c139d3cc158150ab40c351f9f /drivers/usb/phy/phy-gpio-vbus-usb.c | |
parent | usb: renesas_usbhs: fifo: request DMAEngine once (diff) | |
download | linux-31e322272d9d7da0724ae6e3180478575aa48909.tar.xz 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-gpio-vbus-usb.c')
-rw-r--r-- | drivers/usb/phy/phy-gpio-vbus-usb.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/phy/phy-gpio-vbus-usb.c b/drivers/usb/phy/phy-gpio-vbus-usb.c index 02799a5efcd4..69462e09d014 100644 --- a/drivers/usb/phy/phy-gpio-vbus-usb.c +++ b/drivers/usb/phy/phy-gpio-vbus-usb.c @@ -314,8 +314,6 @@ static int gpio_vbus_probe(struct platform_device *pdev) goto err_irq; } - ATOMIC_INIT_NOTIFIER_HEAD(&gpio_vbus->phy.notifier); - INIT_DELAYED_WORK(&gpio_vbus->work, gpio_vbus_work); gpio_vbus->vbus_draw = regulator_get(&pdev->dev, "vbus_draw"); |