From: Guo-Fu Tseng
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_
From: Guo-Fu Tseng
Otherwise it might be back on resume right after going to suspend in
some hardware.
Reported-by: Diego Viola
Signed-off-by: Guo-Fu Tseng
---
drivers/net/ethernet/jme.c | 17 +++--
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/drivers/net/etherne