summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds2009-05-21 01:44:37 +0200
committerLinus Torvalds2009-05-21 01:44:37 +0200
commitecca1c5e3a55d1581be9aa9144642c67de70e33b (patch)
tree9ddf9cd7ca85657a834a5819bf9dc6a04bcad21a
parentMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jba... (diff)
parentPCI PM: Fix initialization and kexec breakage for some devices (diff)
downloadkernel-qcow2-linux-ecca1c5e3a55d1581be9aa9144642c67de70e33b.tar.gz
kernel-qcow2-linux-ecca1c5e3a55d1581be9aa9144642c67de70e33b.tar.xz
kernel-qcow2-linux-ecca1c5e3a55d1581be9aa9144642c67de70e33b.zip
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6: PCI PM: Fix initialization and kexec breakage for some devices
-rw-r--r--drivers/pci/pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 34bf0fdf5047..1a91bf9687af 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -557,7 +557,8 @@ static int pci_platform_power_transition(struct pci_dev *dev, pci_power_t state)
} else {
error = -ENODEV;
/* Fall back to PCI_D0 if native PM is not supported */
- pci_update_current_state(dev, PCI_D0);
+ if (!dev->pm_cap)
+ dev->current_state = PCI_D0;
}
return error;