OSDN Git Service

PCI: Remove pci_resource_bar() and pci_iov_resource_bar()
authorSumit Semwal <sumit.semwal@linaro.org>
Sat, 25 Mar 2017 16:18:06 +0000 (21:48 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Mar 2017 07:35:19 +0000 (09:35 +0200)
commitcef498a2c75adca3b4e3fc348e47498496eec809
tree8ad435b3982c4f6fa8e82003b01d59855ba7b487
parenta87693ec42f24334ece33fac6ea639956f50bd90
PCI: Remove pci_resource_bar() and pci_iov_resource_bar()

From: Bjorn Helgaas <bhelgaas@google.com>

[ 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>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
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