summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGuo-Fu Tseng <cooldavid@cooldavid.org>2016-03-05 08:11:56 +0800
committerBen Hutchings <ben@decadent.org.uk>2016-05-01 00:06:15 +0200
commit964787514290ffacd8eb051f3d34cbb200047f78 (patch)
treeb28b63849dd4638cf8e778bb908597f6ed0d55a0 /include
parentbf40aff79df3983d54d7c22467d1992a5039ee08 (diff)
jme: Fix device PM wakeup API usage
commit 81422e672f8181d7ad1ee6c60c723aac649f538f upstream. According to Documentation/power/devices.txt The driver should not use device_set_wakeup_enable() which is the policy for user to decide. Using device_init_wakeup() to initialize dev->power.should_wakeup and dev->power.can_wakeup on driver initialization. And use device_may_wakeup() on suspend to decide if WoL function should be enabled on NIC. Reported-by: Diego Viola <diego.viola@gmail.com> Signed-off-by: Guo-Fu Tseng <cooldavid@cooldavid.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions