mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
qcacmn: Fix hif_bus_prevent_linkdown compilation
hif_bus_prevent_linkdown() calls to cnss_wlan_pm_control(), which is only defined when CONFIG_PCI_MSM is enabled, fix the conditional compilation. Also fix a typo of RUNTIME_PM to FEATURE_RUNTIME_PM. Change-Id: I9d4cd65ee0020ca1b41d026c3124317ce854ea92 CRs-fixed: 966771
This commit is contained in:
parent
142cee4bf2
commit
0f6d330844
1 changed files with 9 additions and 3 deletions
|
|
@ -1645,9 +1645,7 @@ void hif_disable_bus(void *bdev)
|
|||
|
||||
#define OL_ATH_PCI_PM_CONTROL 0x44
|
||||
|
||||
#ifdef CONFIG_CNSS
|
||||
|
||||
#ifdef RUNTIME_PM
|
||||
#ifdef FEATURE_RUNTIME_PM
|
||||
/**
|
||||
* hif_runtime_prevent_linkdown() - prevent or allow a runtime pm from occuring
|
||||
* @scn: hif context
|
||||
|
|
@ -1670,6 +1668,7 @@ static void hif_runtime_prevent_linkdown(struct ol_softc *scn, bool flag)
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_CNSS) && defined(CONFIG_PCI_MSM)
|
||||
/**
|
||||
* hif_bus_prevent_linkdown(): allow or permit linkdown
|
||||
* @flag: true prevents linkdown, false allows
|
||||
|
|
@ -1686,6 +1685,13 @@ void hif_bus_prevent_linkdown(struct ol_softc *scn, bool flag)
|
|||
hif_runtime_prevent_linkdown(scn, flag);
|
||||
cnss_wlan_pm_control(flag);
|
||||
}
|
||||
#else
|
||||
void hif_bus_prevent_linkdown(struct ol_softc *scn, bool flag)
|
||||
{
|
||||
HIF_ERROR("wlan: %s pcie power collapse",
|
||||
(flag ? "disable" : "enable"));
|
||||
hif_runtime_prevent_linkdown(scn, flag);
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue