aboutsummaryrefslogtreecommitdiff
path: root/src/include/device
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/device')
-rw-r--r--src/include/device/device.h2
-rw-r--r--src/include/device/pci.h12
2 files changed, 1 insertions, 13 deletions
diff --git a/src/include/device/device.h b/src/include/device/device.h
index 9defb19d83..1eff4a29c6 100644
--- a/src/include/device/device.h
+++ b/src/include/device/device.h
@@ -42,7 +42,7 @@ struct device_operations {
#endif
const struct pci_operations *ops_pci;
const struct smbus_bus_operations *ops_smbus_bus;
- const struct pci_bus_operations *ops_pci_bus;
+ const struct pci_bus_operations * (*ops_pci_bus)(device_t dev);
const struct pnp_mode_ops *ops_pnp_mode;
};
#endif
diff --git a/src/include/device/pci.h b/src/include/device/pci.h
index 1f47dafeca..2dea1cf088 100644
--- a/src/include/device/pci.h
+++ b/src/include/device/pci.h
@@ -94,17 +94,5 @@ static inline const struct pci_operations *ops_pci(device_t dev)
return pops;
}
-static inline const struct pci_bus_operations *ops_pci_bus(struct bus *bus)
-{
- const struct pci_bus_operations *bops;
- bops = 0;
- if (bus && bus->dev && bus->dev->ops) {
- bops = bus->dev->ops->ops_pci_bus;
- }
- if (!bops)
- bops = pci_config_default();
- return bops;
-}
-
#endif
#endif /* PCI_H */