Browse Source

qcacld-3.0: Do not compile pld_pcie file for non-pci case

Do not compile pld_pcie file for non-pci
attach.

Change-Id: Ic32074960137e055f991de134a9720e2b81a642c
CRs-Fixed: 2213301
Nirav Shah 7 years ago
parent
commit
fb79af826c
2 changed files with 3 additions and 3 deletions
  1. 1 1
      Kbuild
  2. 2 2
      core/pld/src/pld_pcie.h

+ 1 - 1
Kbuild

@@ -1746,7 +1746,7 @@ PLD_INC :=	-I$(WLAN_ROOT)/$(PLD_INC_DIR) \
 
 PLD_OBJS :=	$(PLD_SRC_DIR)/pld_common.o
 
-ifeq ($(CONFIG_PCI), y)
+ifeq ($(CONFIG_HIF_PCI), 1)
 PLD_OBJS +=	$(PLD_SRC_DIR)/pld_pcie.o
 endif
 ifeq ($(CONFIG_ICNSS), y)

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

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
  *
  * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
  *
@@ -33,7 +33,7 @@
 #endif
 #include "pld_internal.h"
 
-#ifndef CONFIG_PCI
+#ifndef HIF_PCI
 static inline int pld_pcie_register_driver(void)
 {
 	return 0;