Skip to content

Commit

Permalink
usb: musb: Add missing ATOMIC_INIT_NOTIFIER_HEAD
Browse files Browse the repository at this point in the history
&twl->phy.notifier is not initalized

Signed-off-by: Pali Rohár <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
  • Loading branch information
pali authored and Felipe Balbi committed Oct 1, 2013
1 parent 1860c92 commit 80d2e76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/usb/phy/phy-twl4030-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 80d2e76

Please sign in to comment.