gianfar: Do not call device_set_wakeup_enable() under a spinlock
authorRafael J. Wysocki <rjw@sisk.pl>
Tue, 9 Nov 2010 11:54:19 +0000 (11:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Nov 2010 22:05:43 +0000 (14:05 -0800)
commit6c4f199411f254bf3713b04ed8653f0955883309
tree64c4ea35c4faed4709e8e2c8c4f119e31715c129
parent403856532734317d25ec86ab1e75b8133db7acc6
gianfar: Do not call device_set_wakeup_enable() under a spinlock

The gianfar driver calls device_set_wakeup_enable() under a spinlock,
which causes a problem to happen after the recent core power
management changes, because this function can sleep now.  Fix this
by moving the device_set_wakeup_enable() call out of the
spinlock-protected area.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/gianfar_ethtool.c