diff options
author | Barry Song <Barry.Song@csr.com> | 2011-10-24 02:40:40 -0700 |
---|---|---|
committer | Barry Song <Barry.Song@csr.com> | 2011-10-24 02:45:43 -0700 |
commit | 1e11bec9b09a28f81dd3173fec6b1c6c56b5e299 (patch) | |
tree | cddb92f82bda3a5f362bb6d9f775d25dd1205e6b /arch/x86/pci/acpi.c | |
parent | 2558bd99cb1426a05ac8f1c78dc9c75a83ceb4bb (diff) | |
parent | 91c2ebb90b1890abc648ba9dec5608cbc97e1cb9 (diff) |
Merge branch 'l2x0' of rmk tree into prima2-l2x0
Diffstat (limited to 'arch/x86/pci/acpi.c')
-rw-r--r-- | arch/x86/pci/acpi.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/x86/pci/acpi.c b/arch/x86/pci/acpi.c index c95330267f0..039d91315bc 100644 --- a/arch/x86/pci/acpi.c +++ b/arch/x86/pci/acpi.c @@ -365,8 +365,13 @@ struct pci_bus * __devinit pci_acpi_scan_root(struct acpi_pci_root *root) */ if (bus) { struct pci_bus *child; - list_for_each_entry(child, &bus->children, node) - pcie_bus_configure_settings(child, child->self->pcie_mpss); + list_for_each_entry(child, &bus->children, node) { + struct pci_dev *self = child->self; + if (!self) + continue; + + pcie_bus_configure_settings(child, self->pcie_mpss); + } } if (!bus) |