usb: musb: Add missing ATOMIC_INIT_NOTIFIER_HEAD
authorPali Rohár <pali.rohar@gmail.com>
Wed, 18 Sep 2013 17:03:33 +0000 (19:03 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 1 Oct 2013 14:31:13 +0000 (09:31 -0500)
&twl->phy.notifier is not initalized

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-twl4030-usb.c

index 90730c8762b8f8ee850a8a153ad757a4b5b3337e..5baa9c7267f4bf500e774542d23656674dfffc40 100644 (file)
@@ -705,6 +705,8 @@ static int twl4030_usb_probe(struct platform_device *pdev)
        if (device_create_file(&pdev->dev, &dev_attr_vbus))
                dev_warn(&pdev->dev, "could not create sysfs file\n");
 
+       ATOMIC_INIT_NOTIFIER_HEAD(&twl->phy.notifier);
+
        /* Our job is to use irqs and status from the power module
         * to keep the transceiver disabled when nothing's connected.
         *