Rafael J. Wysocki 99dadce875 PCI PM: Fix saving of device state in pci_legacy_suspend
Make pci_legacy_suspend() save the state of the device if it is
in PCI_UNKNOWN after its suspend callback has run and warn only if
the power state of the device has been changed by its suspend
callback.

Also, use WARN_ONCE(), which is more useful, in pci_legacy_suspend(),
so that the name of the offending function is printed.

Additionally, remove the unnecessary line of code setting
pci_dev->state_saved.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Reported-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-02-04 17:21:08 -08:00
..
2005-10-18 08:26:15 -07:00
2009-01-03 14:02:18 +01:00
2008-10-16 16:53:15 +02:00
2009-01-13 08:03:46 -08:00
2008-10-15 14:24:08 +02:00
2008-10-15 14:24:08 +02:00
2009-01-27 09:53:25 -08:00
2006-12-01 14:36:56 -08:00
2009-01-09 03:39:43 -05:00
2008-10-22 16:42:35 -07:00
2008-06-25 16:05:13 -07:00