summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
authorTaku Izumi <izumi.taku@jp.fujitsu.com>2012-10-30 02:26:18 -0400
committerBjorn Helgaas <bhelgaas@google.com>2012-11-07 11:43:28 -0500
commit642c92da36ae0bed3c31fdd408411ab95f4e326b (patch)
tree28519422f156133241851c29dac86ed451e00018 /drivers/pci/pci.c
parentd4761ba2d6adbe24c792ec6223a5884ae4e82430 (diff)
PCI: Don't pass pci_dev to pci_ext_cfg_avail()
pci_ext_cfg_avail() doesn't use the "struct pci_dev *" passed to it, and there's no requirement that a host bridge even be represented by a pci_dev. This drops the pci_ext_cfg_avail() parameter. [bhelgaas: changelog] Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r--drivers/pci/pci.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 54858838f098..01b68bfa2321 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -3833,14 +3833,13 @@ static void __devinit pci_no_domains(void)
3833} 3833}
3834 3834
3835/** 3835/**
3836 * pci_ext_cfg_enabled - can we access extended PCI config space? 3836 * pci_ext_cfg_avail - can we access extended PCI config space?
3837 * @dev: The PCI device of the root bridge.
3838 * 3837 *
3839 * Returns 1 if we can access PCI extended config space (offsets 3838 * Returns 1 if we can access PCI extended config space (offsets
3840 * greater than 0xff). This is the default implementation. Architecture 3839 * greater than 0xff). This is the default implementation. Architecture
3841 * implementations can override this. 3840 * implementations can override this.
3842 */ 3841 */
3843int __weak pci_ext_cfg_avail(struct pci_dev *dev) 3842int __weak pci_ext_cfg_avail(void)
3844{ 3843{
3845 return 1; 3844 return 1;
3846} 3845}