Переглянути джерело

qcacld-3.0: remove CONFIG_PCI_MSM compilation flag

PLD driver already abstract MSM specific feature, remove CONFIG_PCI_MSM
complilation flag in wlan driver.

Change-Id: I44f685561222f2210e70475df23385e4c211c7d1
CRs-Fixed: 2851926
Jinwei Chen 4 роки тому
батько
коміт
a21bdc0e71
1 змінених файлів з 4 додано та 4 видалено
  1. 4 4
      core/pld/src/pld_pcie.h

+ 4 - 4
core/pld/src/pld_pcie.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -121,15 +121,15 @@ static inline void *pld_pcie_get_fw_ptr(struct device *dev)
 }
 #endif
 
-#if (!defined(CONFIG_PLD_PCIE_CNSS)) || (!defined(CONFIG_PCI_MSM))
+#ifdef CONFIG_PLD_PCIE_CNSS
 static inline int pld_pcie_wlan_pm_control(struct device *dev, bool vote)
 {
-	return 0;
+	return cnss_wlan_pm_control(dev, vote);
 }
 #else
 static inline int pld_pcie_wlan_pm_control(struct device *dev, bool vote)
 {
-	return cnss_wlan_pm_control(dev, vote);
+	return 0;
 }
 #endif