device: Remove device->ops from early stages
Change-Id: I7a361187570716df94a3fd441ae78c0f805b1dda Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33921 Reviewed-by: Patrick Rudolph <siro@das-labor.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Martin Roth
parent
96d8e43178
commit
cac0231615
@@ -592,11 +592,12 @@ void pci_dev_set_resources(struct device *dev)
|
||||
|
||||
void pci_dev_enable_resources(struct device *dev)
|
||||
{
|
||||
const struct pci_operations *ops;
|
||||
const struct pci_operations *ops = NULL;
|
||||
u16 command;
|
||||
|
||||
/* Set the subsystem vendor and device ID for mainboard devices. */
|
||||
ops = ops_pci(dev);
|
||||
if (dev->ops)
|
||||
ops = dev->ops->ops_pci;
|
||||
if (dev->on_mainboard && ops && ops->set_subsystem) {
|
||||
if (CONFIG_SUBSYSTEM_VENDOR_ID)
|
||||
dev->subsystem_vendor = CONFIG_SUBSYSTEM_VENDOR_ID;
|
||||
|
Reference in New Issue
Block a user