summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-01-13 22:17:02 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2019-01-16 08:36:18 +0100
commitbf2550db1a4197792fba664c2b4d4ddcc6a36f7f (patch)
treecc34fab15f785972500fc0214fd5e1a73743105f
parent64dcedb5441997744c4300d3a26d1ef054397e68 (diff)
downloadbarebox-bf2550db1a4197792fba664c2b4d4ddcc6a36f7f.tar.gz
barebox-bf2550db1a4197792fba664c2b4d4ddcc6a36f7f.tar.xz
PCI: Drop "resources" from struct pci_bus
This field is not used by Barebox. Remove it. No functional change intended. Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/pci/pci.c1
-rw-r--r--include/linux/pci.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 7775372774..f358d556f2 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -22,7 +22,6 @@ static struct pci_bus *pci_alloc_bus(void)
INIT_LIST_HEAD(&b->node);
INIT_LIST_HEAD(&b->children);
INIT_LIST_HEAD(&b->devices);
- INIT_LIST_HEAD(&b->resources);
return b;
}
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 28aa56343b..d7a0e2babc 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -130,7 +130,6 @@ struct pci_bus {
struct list_head children; /* list of child buses */
struct list_head devices; /* list of devices on this bus */
struct resource *resource[PCI_BRIDGE_RESOURCE_NUM];
- struct list_head resources; /* address space routed to this bus */
struct pci_ops *ops; /* configuration access functions */