PCI: Remove pci_resource_bar() and pci_iov_resource_bar()
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 28 Nov 2016 22:51:19 +0000 (16:51 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 30 Nov 2016 00:05:09 +0000 (18:05 -0600)
commit286c2378aaccc7343ebf17ec6cd86567659caf70
tree5dd94f0ec77397ace66536e162c9e8be74d3768d
parent546ba9f8f22f71b0202b6ba8967be5cc6dae4e21
PCI: Remove pci_resource_bar() and pci_iov_resource_bar()

pci_std_update_resource() only deals with standard BARs, so we don't have
to worry about the complications of VF BARs in an SR-IOV capability.

Compute the BAR address inline and remove pci_resource_bar().  That makes
pci_iov_resource_bar() unused, so remove that as well.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
drivers/pci/iov.c
drivers/pci/pci.c
drivers/pci/pci.h
drivers/pci/setup-res.c