summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/common/block/systemagent/systemagent.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/common/block/systemagent/systemagent.c')
-rw-r--r--src/soc/intel/common/block/systemagent/systemagent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/common/block/systemagent/systemagent.c b/src/soc/intel/common/block/systemagent/systemagent.c
index 0861e62fc8e2..c2ce999c9f54 100644
--- a/src/soc/intel/common/block/systemagent/systemagent.c
+++ b/src/soc/intel/common/block/systemagent/systemagent.c
@@ -305,7 +305,7 @@ void enable_power_aware_intr(void)
void sa_lock_pam(void)
{
const struct device *dev = pcidev_path_on_root(SA_DEVFN_ROOT);
- if (!dev)
+ if (!CONFIG(HAVE_PAM0_REGISTER) || !dev)
return;
pci_or_config8(dev, PAM0, PAM_LOCK);