From fb79af826c9d9faf089c89e01dad75c0072882af Mon Sep 17 00:00:00 2001 From: Nirav Shah Date: Mon, 12 Mar 2018 18:10:33 +0530 Subject: [PATCH] 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 --- Kbuild | 2 +- core/pld/src/pld_pcie.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Kbuild b/Kbuild index 3402c58816c8..15b63d346e19 100644 --- a/Kbuild +++ b/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) diff --git a/core/pld/src/pld_pcie.h b/core/pld/src/pld_pcie.h index 79f9cabc8522..82d3c9ed91c5 100644 --- a/core/pld/src/pld_pcie.h +++ b/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;