浏览代码

icnss2: Fix compilation error when CONFIG_MSM_QMP is not enabled

'qmp' is not defined in 'struct icnss_priv' when CONFIG_MSM_QMP
is not set, use 'use_direct_qmp' to check if 'qmp' is configured
or not.

Change-Id: I3095f7173c4368d04bfab0c1cefc901ea58fccd4
CRs-Fixed: 3661758
Prateek Patil 1 年之前
父节点
当前提交
027c253616
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      icnss2/power.c

+ 1 - 1
icnss2/power.c

@@ -873,7 +873,7 @@ int icnss_update_cpr_info(struct icnss_priv *priv)
 {
 	struct icnss_cpr_info *cpr_info = &priv->cpr_info;
 
-	if (!cpr_info->vreg_ol_cpr || (!priv->mbox_chan && !priv->qmp)) {
+	if (!cpr_info->vreg_ol_cpr || (!priv->mbox_chan && !priv->use_direct_qmp)) {
 		icnss_pr_dbg("Mbox channel / QMP / OL CPR Vreg not configured\n");
 		return 0;
 	}