]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PCI: Simplify pcie_bus_configure_settings() interface
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 22 Aug 2013 03:24:44 +0000 (11:24 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 22 Aug 2013 16:47:02 +0000 (10:47 -0600)
commita58674ff8383f5b8f6a77f03c48f6a47840b9325
treeb07c7f08dc3bd929131d6dc164d27cf8c0903cff
parent2c25e34c7531ca1849b85cbcdb5a2f507ffe240c
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>
arch/powerpc/kernel/pci-common.c
arch/tile/kernel/pci_gx.c
arch/x86/pci/acpi.c
drivers/pci/hotplug/pcihp_slot.c
drivers/pci/probe.c
include/linux/pci.h