treewide: use predicates to check for enabled pci devices

use functions to check for pci devices instead of open-coded
solution.

TEST: compiled and qemu run successfully

Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Change-Id: Idb992904112db611119b2d33c8b1dd912b2c8539
Reviewed-on: https://review.coreboot.org/c/coreboot/+/68102
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Fabio Aiuto
2022-09-30 11:25:28 +02:00
committed by Martin Roth
parent 4fce79f69c
commit d835da9155
10 changed files with 11 additions and 11 deletions

View File

@@ -575,7 +575,7 @@ unsigned long __weak write_smp_table(unsigned long addr)
for (dev = all_devices; dev; dev = dev->next) {
if (dev->path.type != DEVICE_PATH_PCI || !dev->enabled)
if (!is_enabled_pci(dev))
continue;
have_fixed_entries = 0;