lkml.org 
[lkml]   [2010]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 06/38] Driver core: don't initialize wakeup flags
    Date
    From: Alan Stern <stern@rowland.harvard.edu>

    This patch (as1351) removes an unnecessary and unwanted assignment
    from device_initialize(). The wakeup flags are set to 0 along with
    everything else when the device structure is allocated, so we don't
    need to do it again. Furthermore, the subsystem might already have
    set these flags to their correct values; we don't want to override it.

    Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
    ---
    drivers/base/core.c | 1 -
    1 files changed, 0 insertions(+), 1 deletions(-)

    diff --git a/drivers/base/core.c b/drivers/base/core.c
    index b56a0ba..e11c8c3 100644
    --- a/drivers/base/core.c
    +++ b/drivers/base/core.c
    @@ -562,7 +562,6 @@ void device_initialize(struct device *dev)
    init_MUTEX(&dev->sem);
    spin_lock_init(&dev->devres_lock);
    INIT_LIST_HEAD(&dev->devres_head);
    - device_init_wakeup(dev, 0);
    device_pm_init(dev);
    set_dev_node(dev, -1);
    }
    --
    1.7.0.3


    \
     
     \ /
      Last update: 2010-05-21 19:05    [W:0.022 / U:30.196 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site