lkml.org 
[lkml]   [2013]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH usb 1/2] usb: musb: Add missing ATOMIC_INIT_NOTIFIER_HEAD
    Date
    &twl->phy.notifier is not initalized

    Signed-off-by: Pali Rohár <pali.rohar@gmail.com>

    diff --git a/drivers/usb/phy/phy-twl4030-usb.c b/drivers/usb/phy/phy-twl4030-usb.c
    index 8f78d2d..efe6155 100644
    --- a/drivers/usb/phy/phy-twl4030-usb.c
    +++ b/drivers/usb/phy/phy-twl4030-usb.c
    @@ -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.
    *[unhandled content-type:application/pgp-signature]
    \
     
     \ /
      Last update: 2013-09-18 19:21    [W:4.077 / U:0.088 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site