]> git.baikalelectronics.ru Git - kernel.git/commit
forcedeth: Do not use legacy PCI power management
authorRafael J. Wysocki <rjw@sisk.pl>
Fri, 7 Jan 2011 11:12:05 +0000 (11:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Jan 2011 00:20:29 +0000 (16:20 -0800)
commit1acca91e1cb9f3d752a1cba1fc9cf8e2a0608824
tree4126af0f0cbc00dcac3f1f7156a975916f124147
parent0bc2cf66e4dca01fd17b0f09bcfbeff8e5ed62a2
forcedeth: Do not use legacy PCI power management

The forcedeth driver uses the legacy PCI power management, so it has
to do PCI-specific things in its ->suspend() and ->resume() callbacks
and some of them are not done correctly.

Convert forcedeth to the new PCI power management framework and make
it let the PCI subsystem take care of all the PCI-specific aspects of
device handling during system power transitions.

Tested with nVidia Corporation MCP55 Ethernet (rev a2).

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