From 49fa54d3bb451b70bb2ef45dde48bcb72ded0f3d Mon Sep 17 00:00:00 2001 From: Komal Seelam Date: Tue, 4 Aug 2015 19:10:37 +0530 Subject: 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 --- CORE/SERVICES/HIF/sdio/linux/if_ath_sdio.c | 6 ------ 1 file changed, 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){ -- cgit v1.2.3