Skip to content

Commit 0af83d2

Browse files
lipnitsktsbogend
authored andcommitted
MIPS: pci-legacy: remove busn_resource field
No drivers set the busn_resource field in the pci_controller struct. Commit 7ee214b ("MIPS: PCI: Remove unused busn_offset") almost removed it over 3 years ago. Remove it for good to free up memory and eliminate messages like: pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0] Signed-off-by: Ilya Lipnitskiy <[email protected]> Cc: Bjorn Helgaas <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 317f553 commit 0af83d2

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

arch/mips/include/asm/pci.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ struct pci_controller {
3838
struct resource *io_resource;
3939
unsigned long io_offset;
4040
unsigned long io_map_base;
41-
struct resource *busn_resource;
4241

4342
#ifndef CONFIG_PCI_DOMAINS_GENERIC
4443
unsigned int index;

arch/mips/pci/pci-legacy.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ static void pcibios_scanbus(struct pci_controller *hose)
8989
hose->mem_resource, hose->mem_offset);
9090
pci_add_resource_offset(&resources,
9191
hose->io_resource, hose->io_offset);
92-
pci_add_resource(&resources, hose->busn_resource);
9392
list_splice_init(&resources, &bridge->windows);
9493
bridge->dev.parent = NULL;
9594
bridge->sysdata = hose;

0 commit comments

Comments
 (0)