]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: PCI: Remove unused busn_offset
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 18 May 2017 20:39:19 +0000 (15:39 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 18 May 2017 20:39:19 +0000 (15:39 -0500)
commite8b3b598ab0b57b0abf8109410d74b27d7e4aaff
tree3bf86a9485c6bf87fa0168a206b2a03844b2b80f
parent9f0ee183eb39e080afb91f25df1067fafc57e5d8
MIPS: PCI: Remove unused busn_offset

pci_add_resource_offset() is for host bridge windows where the bridge
translates CPU addresses to PCI bus addresses by adding an offset.  To my
knowledge, no host bridge translates bus numbers, so this is only useful
for MEM and IO windows.  In any event, host->busn_offset is never set to
anything other than zero, so pci_add_resource() is sufficient.

2f3d780dec68 ("MIPS: PCI: Add a hook for IORESOURCE_BUS in
pci_controller/bridge_controller") also added busn_resource itself.  This
is currently unused but may be used by future SGI IP27 fixes, so I left it
there.

Tested-by: Joshua Kinard <kumba@gentoo.org> # SGI IP30 and IP27
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Joshua Kinard <kumba@gentoo.org>
arch/mips/include/asm/pci.h
arch/mips/pci/pci-legacy.c