summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2019-08-18 21:16:50 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2019-08-18 21:16:50 +0100
commit80f2b4833ec2efc68ac78b4ae818d76d651abeca (patch)
tree5a8fcde65e118034c5ee77d2d56022aa849584d4
parentd5c86af027ebfb296ead6b43fa7256c5e85321b2 (diff)
downloadqemu-openbios-80f2b4833ec2efc68ac78b4ae818d76d651abeca.tar.gz
pci: remove ob_pci_initialize() and ob_pci_empty_node
The ob_pci_initialize() function can be removed as it is empty, whilst ob_pci_empty_node is no longer required since the existing fallback code will always apply the ob_pci_simple_node bindings if no callback is configured. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
-rw-r--r--drivers/pci.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/pci.c b/drivers/pci.c
index 623f649f..d4971095 100644
--- a/drivers/pci.c
+++ b/drivers/pci.c
@@ -54,7 +54,6 @@
DECLARE_UNNAMED_NODE( ob_pci_bus_node, INSTALL_OPEN, 2*sizeof(int) );
DECLARE_UNNAMED_NODE( ob_pci_bridge_node, INSTALL_OPEN, 2*sizeof(int) );
DECLARE_UNNAMED_NODE( ob_pci_simple_node, 0, 2*sizeof(int) );
-DECLARE_UNNAMED_NODE( ob_pci_empty_node, 0, 2*sizeof(int) );
const pci_arch_t *arch;
@@ -189,11 +188,6 @@ ob_pci_close(int *idx)
{
}
-static void
-ob_pci_initialize(int *idx)
-{
-}
-
/* ( str len -- phys.lo phys.mid phys.hi ) */
static void
@@ -462,7 +456,6 @@ ob_pci_dma_sync(int *idx)
}
NODE_METHODS(ob_pci_bus_node) = {
- { NULL, ob_pci_initialize },
{ "open", ob_pci_open },
{ "close", ob_pci_close },
{ "decode-unit", ob_pci_decode_unit },
@@ -485,7 +478,6 @@ ob_pci_bridge_map_in(int *idx)
}
NODE_METHODS(ob_pci_bridge_node) = {
- { NULL, ob_pci_initialize },
{ "open", ob_pci_open },
{ "close", ob_pci_close },
{ "decode-unit", ob_pci_decode_unit },
@@ -503,10 +495,6 @@ NODE_METHODS(ob_pci_simple_node) = {
{ "close", ob_pci_close },
};
-NODE_METHODS(ob_pci_empty_node) = {
- { NULL, ob_pci_initialize }
-};
-
static void pci_set_bus_range(const pci_config_t *config)
{
phandle_t dev = find_dev(config->path);
@@ -1827,9 +1815,6 @@ static phandle_t ob_configure_pci_device(const char* parent_path,
BIND_NODE_METHODS(phandle, ob_pci_bus_node);
}
break;
- default:
- BIND_NODE_METHODS(phandle, ob_pci_empty_node);
- break;
}
if (htype & PCI_HEADER_TYPE_BRIDGE) {