qcacld-3.0: Protect cnss_wlan_pm_control under CONFIG_PCI_MSM

Add CONFIG_PCI_MSM flag for cnss_wlan_pm_control.

CRs-Fixed: 1010156
Change-Id: Icba6ec0952f899a2602751340a45f597eaf87d35
This commit is contained in:
Yuanyuan Liu 2016-04-21 15:13:22 -07:00 • committed by Akash Patel
commit 466ccb70fb

View file

@ -88,6 +88,13 @@ static inline void *cnss_get_fw_ptr(void)
}
#endif
#if (!defined(CONFIG_CNSS)) || (!defined(CONFIG_PCI_MSM))
static inline int cnss_wlan_pm_control(bool vote)
{
return 0;
}
#endif
#ifndef CONFIG_CNSS
static inline int
pld_pcie_get_fw_files_for_target(struct pld_fw_files *pfw_files,
@ -131,10 +138,6 @@ static inline int cnss_wlan_get_dfs_nol(void *info, u16 info_len)
{
return 0;
}
static inline int cnss_wlan_pm_control(bool vote)
{
return 0;
}
static inline void *cnss_get_virt_ramdump_mem(unsigned long *size)
{
return NULL;