diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2013-08-21 23:24:44 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-08-22 12:47:02 -0400 |
commit | a58674ff8383f5b8f6a77f03c48f6a47840b9325 (patch) | |
tree | b07c7f08dc3bd929131d6dc164d27cf8c0903cff /arch/powerpc/kernel/pci-common.c | |
parent | 2c25e34c7531ca1849b85cbcdb5a2f507ffe240c (diff) |
PCI: Simplify pcie_bus_configure_settings() interface
Based on a patch by Jon Mason (see URL below).
All users of pcie_bus_configure_settings() pass arguments of the form
"bus, bus->self->pcie_mpss". The "mpss" argument is redundant since we
can easily look it up internally. In addition, all callers check
"bus->self" for NULL, which we can also do internally.
This patch simplifies the interface and the callers. No functional change.
Reference: http://lkml.kernel.org/r/1317048850-30728-2-git-send-email-mason@myri.com
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'arch/powerpc/kernel/pci-common.c')
-rw-r--r-- | arch/powerpc/kernel/pci-common.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index f46914a0f33e..d35ec34de1b4 100644 --- a/arch/powerpc/kernel/pci-common.c +++ b/arch/powerpc/kernel/pci-common.c | |||
@@ -1672,12 +1672,8 @@ void pcibios_scan_phb(struct pci_controller *hose) | |||
1672 | /* Configure PCI Express settings */ | 1672 | /* Configure PCI Express settings */ |
1673 | if (bus && !pci_has_flag(PCI_PROBE_ONLY)) { | 1673 | if (bus && !pci_has_flag(PCI_PROBE_ONLY)) { |
1674 | struct pci_bus *child; | 1674 | struct pci_bus *child; |
1675 | list_for_each_entry(child, &bus->children, node) { | 1675 | list_for_each_entry(child, &bus->children, node) |
1676 | struct pci_dev *self = child->self; | 1676 | pcie_bus_configure_settings(child); |
1677 | if (!self) | ||
1678 | continue; | ||
1679 | pcie_bus_configure_settings(child, self->pcie_mpss); | ||
1680 | } | ||
1681 | } | 1677 | } |
1682 | } | 1678 | } |
1683 | 1679 | ||