tg3: Do not call device_set_wakeup_enable() under spin_lock_bh
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 25 Oct 2010 13:01:55 +0000 (13:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Oct 2010 18:34:09 +0000 (11:34 -0700)
The tg3 driver calls device_set_wakeup_enable() under spin_lock_bh,
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
spin_lock_bh-protected area.

Reported-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c

Simple merge