summaryrefslogtreecommitdiff
path: root/src/soc/intel/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/common')
-rw-r--r--src/soc/intel/common/block/cse/cse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/soc/intel/common/block/cse/cse.c b/src/soc/intel/common/block/cse/cse.c
index 32b7f209a4..2444ceefb0 100644
--- a/src/soc/intel/common/block/cse/cse.c
+++ b/src/soc/intel/common/block/cse/cse.c
@@ -1012,11 +1012,11 @@ void cse_set_to_d0i3(void)
void heci_set_to_d0i3(void)
{
for (int i = 0; i < CONFIG_MAX_HECI_DEVICES; i++) {
- pci_devfn_t dev = PCI_DEV(0, PCI_SLOT(PCH_DEV_SLOT_CSE), PCI_FUNC(i));
- if (!is_cse_devfn_visible(dev))
+ pci_devfn_t devfn = PCI_DEVFN(PCH_DEV_SLOT_CSE, i);
+ if (!is_cse_devfn_visible(devfn))
continue;
- set_cse_device_state(dev, DEV_IDLE);
+ set_cse_device_state(devfn, DEV_IDLE);
}
}