Guo-Fu Tseng 81422e672f jme: Fix device PM wakeup API usage
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>
2016-03-07 15:39:45 -05:00
..
2016-01-25 10:51:52 -08:00
2015-11-15 17:09:23 -05:00
2016-02-13 06:10:21 -05:00
2016-03-07 14:58:11 -05:00
2015-10-21 19:36:10 -07:00
2015-10-13 04:55:07 -07:00
2015-12-17 15:25:57 -05:00