aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoyster <oysterized@gmail.com>2016-11-11 02:48:27 +0100
committerMoyster <oysterized@gmail.com>2016-11-11 02:48:27 +0100
commite1db96f8e55f339667730924ae4790ca0b6212f8 (patch)
tree516ea3fcafe8c92993a871fe6897866de5070917
parent6edc46d3895d540494b3e9a108b834ce331d66c0 (diff)
Revert "hand-pick: mediatek:remove unnecessary sido call flow"
This reverts commit 9a7858491639342b5d3c8d496d3b9370d2330591.
-rw-r--r--drivers/misc/mediatek/connectivity/common_detect/wmt_detect.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/misc/mediatek/connectivity/common_detect/wmt_detect.c b/drivers/misc/mediatek/connectivity/common_detect/wmt_detect.c
index f2f7322c8..3d137a047 100644
--- a/drivers/misc/mediatek/connectivity/common_detect/wmt_detect.c
+++ b/drivers/misc/mediatek/connectivity/common_detect/wmt_detect.c
@@ -137,6 +137,15 @@ static long wmt_detect_unlocked_ioctl(struct file *filp, unsigned int cmd, unsig
/*get soc chipid by HAL interface*/
break;
+ case COMBO_IOCTL_MODULE_CLEANUP:
+ #if (MTK_WCN_REMOVE_KO)
+ /*deinit SDIO-DETECT module*/
+ retval = sdio_detect_exit();
+ #else
+ WMT_DETECT_INFO_FUNC("no MTK_WCN_REMOVE_KO defined\n");
+ #endif
+ break;
+
case COMBO_IOCTL_DO_MODULE_INIT:
#if (MTK_WCN_REMOVE_KO)
/*deinit SDIO-DETECT module*/
@@ -270,6 +279,9 @@ static int wmt_detect_init(void)
WMT_DETECT_INFO_FUNC("driver(major %d) installed success\n", gWmtDetectMajor);
+ /*init SDIO-DETECT module*/
+ sdio_detect_init();
+
return 0;
err2: