From cd3b976590302817ea93f411b9360142c10e78a3 Mon Sep 17 00:00:00 2001 From: Xiaoning Ma Date: Tue, 24 Oct 2023 14:18:31 +0530 Subject: [PATCH] cnss2: Fix compilation error when CONFIG_MSM_QMP is not enabled 'qmp' is not defined in 'struct cnss_plat_data' when CONFIG_MSM_QMP is not set, use 'use_direct_qmp' to check if 'qmp' is configured or not. Change-Id: If8f822a3bb1acfe10ecf175f742f3f5abd5f7df7 CRs-Fixed: 3647012 --- cnss2/power.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cnss2/power.c b/cnss2/power.c index fbd351f5fd..b70196f276 100644 --- a/cnss2/power.c +++ b/cnss2/power.c @@ -1784,7 +1784,7 @@ int cnss_update_cpr_info(struct cnss_plat_data *plat_priv) return -EINVAL; if (!plat_priv->vreg_ol_cpr || - (!plat_priv->mbox_chan && !plat_priv->qmp)) { + (!plat_priv->mbox_chan && !plat_priv->use_direct_qmp)) { cnss_pr_dbg("Mbox channel / QMP / OL CPR Vreg not configured\n"); } else { return cnss_aop_set_vreg_param(plat_priv, @@ -1865,7 +1865,7 @@ int cnss_enable_int_pow_amp_vreg(struct cnss_plat_data *plat_priv) } if (!plat_priv->vreg_ipa || - (!plat_priv->mbox_chan && !plat_priv->qmp)) { + (!plat_priv->mbox_chan && !plat_priv->use_direct_qmp)) { cnss_pr_dbg("Mbox channel / QMP / IPA Vreg not configured\n"); } else { ret = cnss_aop_set_vreg_param(plat_priv,