summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-11-11 19:34:14 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2009-11-11 19:34:14 (GMT)
commit55871bdd03bf577c5c8fc65498ae24b7c148e1eb (patch)
tree4e5e0a751e3229835200b4be69f6c71f94c31ece /drivers
parente5d45abe1487aa856e48d6d9b857bd200b63b896 (diff)
parenteb647138acefc897c0eb6eddd5d3650966dfe627 (diff)
downloadlinux-fsl-qoriq-55871bdd03bf577c5c8fc65498ae24b7c148e1eb.tar.xz
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: x86/PCI: Adjust GFP mask handling for coherent allocations PCI ASPM: fix oops on root port removal
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/pcie/aspm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c
index 745402e..5b7056c 100644
--- a/drivers/pci/pcie/aspm.c
+++ b/drivers/pci/pcie/aspm.c
@@ -656,8 +656,10 @@ void pcie_aspm_exit_link_state(struct pci_dev *pdev)
free_link_state(link);
/* Recheck latencies and configure upstream links */
- pcie_update_aspm_capable(root);
- pcie_config_aspm_path(parent_link);
+ if (parent_link) {
+ pcie_update_aspm_capable(root);
+ pcie_config_aspm_path(parent_link);
+ }
out:
mutex_unlock(&aspm_lock);
up_read(&pci_bus_sem);