PCI: Remove pci_resource_bar() and pci_iov_resource_bar()
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 17 Mar 2017 00:48:23 +0000 (00:48 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2017 11:43:36 +0000 (12:43 +0100)
commit7b65c3a84311026200b19eb86c9a76ff004402f8
tree7ba52acc6de79a486c1666257af591e51c97cd88
parent6a5f3e664ac798b54448fc55e7e7c3a9fd1ee9d4
PCI: Remove pci_resource_bar() and pci_iov_resource_bar()

[ Upstream commit 286c2378aaccc7343ebf17ec6cd86567659caf70 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/iov.c
drivers/pci/pci.c
drivers/pci/pci.h
drivers/pci/setup-res.c