Browse Source

qcacld-3.0: Add kernel ver check for pld_pcie_register_qmi_ind

Add kernel version check for pld_pcie_register_qmi_ind func

Change-Id: I2b12c2c614a16576578780a90aec244d4868f4ca
CRs-Fixed: 3804973
Prasanna JS 1 year ago
parent
commit
5e55c17777
1 changed files with 2 additions and 1 deletions
  1. 2 1
      core/pld/src/pld_pcie.h

+ 2 - 1
core/pld/src/pld_pcie.h

@@ -631,7 +631,8 @@ pld_pcie_qmi_send(struct device *dev, int type, void *cmd,
 	return cnss_qmi_send(dev, type, cmd, cmd_len, cb_ctx, cb);
 }
 
-#ifdef WLAN_CHIPSET_STATS
+#if defined(WLAN_CHIPSET_STATS) && \
+	(LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0))
 static inline int
 pld_pcie_register_qmi_ind(struct device *dev, void *cb_ctx,
 			  int (*cb)(void *ctx, uint16_t type,