From 6fefdfd106baff0cc74551e14d6344408271524a Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Wed, 23 Jan 2019 15:57:13 +0200 Subject: device/pci_ops: Simplify logic for PCI bus ops MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Nobody ever sets ops_pci_bus. This implies pci_bus_ops() always returns pci_bus_default_ops() and get_pbus returns NULL. Change-Id: Ia30d579e1efe6542dc58714f2e7077507847c0de Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/31684 Reviewed-by: Aaron Durbin Reviewed-by: Nico Huber Tested-by: build bot (Jenkins) --- src/include/device/device.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/include') diff --git a/src/include/device/device.h b/src/include/device/device.h index 3b38322fcc..4c6706489a 100644 --- a/src/include/device/device.h +++ b/src/include/device/device.h @@ -68,7 +68,6 @@ struct device_operations { const struct i2c_bus_operations *ops_i2c_bus; const struct spi_bus_operations *ops_spi_bus; const struct smbus_bus_operations *ops_smbus_bus; - const struct pci_bus_operations * (*ops_pci_bus)(struct device *dev); const struct pnp_mode_ops *ops_pnp_mode; }; -- cgit v1.2.3