diff options
| author | Komal Seelam <kseelam@qti.qualcomm.com> | 2015-08-04 19:10:37 +0530 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2015-08-05 16:29:54 +0530 |
| commit | 49fa54d3bb451b70bb2ef45dde48bcb72ded0f3d (patch) | |
| tree | dc31d8964cbfd500fd1cbed04777ef05efce3300 | |
| parent | c3a0a735e7ba90c29d22a1a26618ca8f00f1dc24 (diff) | |
qcacld: Fix Driver Load Failure in static build driver
With the current design driver never gets unloaded if the
driver is inbuilt into the kernel.
On SDIO based platforms, the second load is failing as the
probed state is not cleared as part of exit.
The probed state adds no value to our current design.
Hence remove it completely and fix the driver load failure
issue.
Change-Id: Ie6a0d56a306b6b1da5d8ea36d745b7c23f14b54c
CRs-Fixed: 884503
| -rw-r--r-- | CORE/SERVICES/HIF/sdio/linux/if_ath_sdio.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/CORE/SERVICES/HIF/sdio/linux/if_ath_sdio.c b/CORE/SERVICES/HIF/sdio/linux/if_ath_sdio.c index 73d6a15ebaa8..be7214296e35 100644 --- a/CORE/SERVICES/HIF/sdio/linux/if_ath_sdio.c +++ b/CORE/SERVICES/HIF/sdio/linux/if_ath_sdio.c @@ -287,7 +287,6 @@ static char *dev_info = "ath_hif_sdio"; static int init_ath_hif_sdio(void) { - static int probed = 0; A_STATUS status; OSDRV_CALLBACKS osdrvCallbacks; ENTER(); @@ -301,11 +300,6 @@ static int init_ath_hif_sdio(void) osdrvCallbacks.devicePowerChangeHandler = ath_hif_sdio_power_change; #endif - if (probed) { - return -ENODEV; - } - probed++; - VOS_TRACE(VOS_MODULE_ID_HIF, VOS_TRACE_LEVEL_INFO,"%s %d",__func__,__LINE__); status = HIFInit(&osdrvCallbacks); if(status != A_OK){ |
