aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <[email protected]>2009-02-04 01:59:09 +0100
committerJesse Barnes <[email protected]>2009-02-04 17:21:08 -0800
commit99dadce8756bf08f5f8baf749533d044f6b3ff25 (patch)
tree7593c043681c463382fafb22737e4f4a7f52f00b /net/lapb/lapb_iface.c
parent144a76bc885ef4852601c66595326e59f12877f8 (diff)
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 <[email protected]> Reported-by: Benjamin Herrenschmidt <[email protected]> Acked-by: Linus Torvalds <[email protected]> Signed-off-by: Jesse Barnes <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions