]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.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)
committerLaxman Dewangan <ldewangan@nvidia.com>
Mon, 11 Aug 2014 05:00:27 +0000 (22:00 -0700)
commit348e59d183a0d58c8975c3246ff74da2b699fa94
tree2be8b761309619a33d08e9d61bf1eece4c2c6492
parent04d850c343866fc3558b6720117dd14e98fcc051
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.

Bug 1496843

Change-Id: I6f4b3c0e2bc359fb260e0f8e253dd737d9be4e25
Reference: http://lkml.kernel.org/r/1317048850-30728-2-git-send-email-mason@myri.com
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/449151
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.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