PCI: Simplify PCI device PM code
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 7 Jul 2008 01:36:24 +0000 (03:36 +0200)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 7 Jul 2008 23:26:50 +0000 (16:26 -0700)
commit337001b6c42938f49a880b1b8306c3ed771a7e61
tree0e704359c989beba626388cf2404f038e55f442e
parent404cc2d8ce41ed4031958fba8e633767e8a2e028
PCI: Simplify PCI device PM code

If the offset of PCI device's PM capability in its configuration space,
the mask of states that the device supports PME# from and the D1 and D2
support bits are cached in the corresponding struct pci_dev, the PCI
device PM code can be simplified quite a bit.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci.c
include/linux/pci.h
include/linux/pci_regs.h