]> git.karo-electronics.de Git - mv-sheeva.git/commit
tg3: Do not use legacy PCI power management
authorRafael J. Wysocki <rjw@sisk.pl>
Sat, 25 Dec 2010 12:56:23 +0000 (12:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Dec 2010 19:14:28 +0000 (11:14 -0800)
commitc866b7eac073198cef03ea6bac2dc978635a9f5c
tree945266522a39ef06ea164157e78c0e32216eaaa4
parentf5260f02e7903bb10e45b1bf3500eab6425edf5c
tg3: Do not use legacy PCI power management

The tg3 driver uses the legacy PCI power management, so it has to do
some PCI-specific things in its ->suspend() and ->resume() callbacks,
which isn't necessary and should better be done by the PCI
sybsystem-level power management code.

Convert tg3 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 on HP nx6325 with a NetXtreme BCM5788 adapter.

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