summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/broadwell/pch/lpc.c2
-rw-r--r--src/soc/intel/common/block/lpc/lpc_lib.c2
-rw-r--r--src/soc/intel/denverton_ns/lpc.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/soc/intel/broadwell/pch/lpc.c b/src/soc/intel/broadwell/pch/lpc.c
index 5c4103d79a..5a1623f341 100644
--- a/src/soc/intel/broadwell/pch/lpc.c
+++ b/src/soc/intel/broadwell/pch/lpc.c
@@ -86,7 +86,7 @@ static void pch_pirq_init(struct device *dev)
for (irq_dev = all_devices; irq_dev; irq_dev = irq_dev->next) {
u8 int_pin = 0, int_line = 0;
- if (!irq_dev->enabled || irq_dev->path.type != DEVICE_PATH_PCI)
+ if (!is_enabled_pci(irq_dev))
continue;
int_pin = pci_read_config8(irq_dev, PCI_INTERRUPT_PIN);
diff --git a/src/soc/intel/common/block/lpc/lpc_lib.c b/src/soc/intel/common/block/lpc/lpc_lib.c
index 99e3749d61..d499918570 100644
--- a/src/soc/intel/common/block/lpc/lpc_lib.c
+++ b/src/soc/intel/common/block/lpc/lpc_lib.c
@@ -436,7 +436,7 @@ void pch_pirq_init(void)
for (irq_dev = all_devices; irq_dev; irq_dev = irq_dev->next) {
uint8_t int_pin = 0, int_line = 0;
- if (!irq_dev->enabled || irq_dev->path.type != DEVICE_PATH_PCI)
+ if (!is_enabled_pci(irq_dev))
continue;
int_pin = pci_read_config8(PCI_BDF(irq_dev), PCI_INTERRUPT_PIN);
diff --git a/src/soc/intel/denverton_ns/lpc.c b/src/soc/intel/denverton_ns/lpc.c
index 1fc1ea35c7..5d1eda5e23 100644
--- a/src/soc/intel/denverton_ns/lpc.c
+++ b/src/soc/intel/denverton_ns/lpc.c
@@ -254,7 +254,7 @@ static u8 dnv_get_int_line(struct device *irq_dev)
int8_t original_int_pin = 0, new_int_pin = 0, swiz_int_pin = 0;
uint8_t int_line = 0xff;
- if (irq_dev->path.type != DEVICE_PATH_PCI || !irq_dev->enabled) {
+ if (!is_enabled_pci(irq_dev)) {
printk(BIOS_ERR, "%s for non pci device?\n", __func__);
goto dnv_get_int_line_done;
}
@@ -380,7 +380,7 @@ static void pch_pirq_init(struct device *dev)
int devfn = irq_dev->path.pci.devfn;
u8 int_pin = 0, int_line = 0;
- if (!irq_dev->enabled || irq_dev->path.type != DEVICE_PATH_PCI)
+ if (!is_enabled_pci(irq_dev))
continue;
int_pin = pci_read_config8(irq_dev, PCI_INTERRUPT_PIN);