qcacmn: Remove extra sleep_state_adjust dummy

Select the dummy implementation in the pci bus_ops assignment function
when MAX_PERF is selected.

Change-Id: I0a77e060dde2792959ae96bca86a4c073bb4cab0
CRs-Fixed: 986480
This commit is contained in:
Houston Hoffman
2016-03-14 21:11:56 -07:00
committed by Gerrit - the friendly Code Review server
parent 379fad90ca
commit ca581c4ee3
2 changed files with 9 additions and 11 deletions

View File

@@ -28,6 +28,8 @@
#include "hif.h" #include "hif.h"
#include "multibus.h" #include "multibus.h"
#include "pci_api.h" #include "pci_api.h"
#include "hif_io32.h"
#include "dummy.h"
/** /**
* hif_initialize_pci_ops() - initialize the pci ops * hif_initialize_pci_ops() - initialize the pci ops
@@ -43,8 +45,13 @@ QDF_STATUS hif_initialize_pci_ops(struct hif_bus_ops *bus_ops)
bus_ops->hif_reset_soc = &hif_pci_reset_soc; bus_ops->hif_reset_soc = &hif_pci_reset_soc;
bus_ops->hif_bus_suspend = &hif_pci_bus_suspend; bus_ops->hif_bus_suspend = &hif_pci_bus_suspend;
bus_ops->hif_bus_resume = &hif_pci_bus_resume; bus_ops->hif_bus_resume = &hif_pci_bus_resume;
bus_ops->hif_target_sleep_state_adjust =
&hif_pci_target_sleep_state_adjust; if (CONFIG_ATH_PCIE_MAX_PERF == 0)
bus_ops->hif_target_sleep_state_adjust =
&hif_pci_target_sleep_state_adjust;
else
bus_ops->hif_target_sleep_state_adjust =
&hif_dummy_target_sleep_state_adjust;
return QDF_STATUS_SUCCESS; return QDF_STATUS_SUCCESS;
} }

View File

@@ -2869,7 +2869,6 @@ static int hif_log_soc_wakeup_timeout(struct hif_pci_softc *sc)
* *
* Return: int * Return: int
*/ */
#if ((CONFIG_ATH_PCIE_MAX_PERF == 0) && CONFIG_ATH_PCIE_AWAKE_WHILE_DRIVER_LOAD)
int hif_pci_target_sleep_state_adjust(struct hif_softc *scn, int hif_pci_target_sleep_state_adjust(struct hif_softc *scn,
bool sleep_ok, bool wait_for_it) bool sleep_ok, bool wait_for_it)
{ {
@@ -2984,14 +2983,6 @@ int hif_pci_target_sleep_state_adjust(struct hif_softc *scn,
return 0; return 0;
} }
#else
inline int
hif_pci_sleep_state_adjust(struct hif_softc *scn,
bool sleep_ok, bool wait_for_it)
{
return 0;
}
#endif
#ifdef CONFIG_ATH_PCIE_ACCESS_DEBUG #ifdef CONFIG_ATH_PCIE_ACCESS_DEBUG
uint32_t hif_target_read_checked(struct hif_softc *scn, uint32_t offset) uint32_t hif_target_read_checked(struct hif_softc *scn, uint32_t offset)