• Rafael J. Wysocki's avatar
    PM: Remove prev_state from struct dev_pm_info · 515c5357
    Rafael J. Wysocki authored
    
    
    The prev_state member of struct dev_pm_info (defined in include/linux/pm.h) is
    only used during a resume to check if the device's state before the suspend was
    'off', in which case the device is not resumed.  However, in such cases the
    decision whether or not to resume the device should be made on the driver level
    and the resume callbacks from the device's bus and class should be executed
    anyway (the may be needed for some things other than just powering on the
    device).
    Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    515c5357
hub.c 83.8 KB