diff options
| author | Moyster <oysterized@gmail.com> | 2016-11-11 02:48:40 +0100 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-11-11 02:48:40 +0100 |
| commit | cbfef78a9e64ec8216eb698402f95d2563116c21 (patch) | |
| tree | c6db86348768edf75a14521e9809ae991184efaa /drivers/misc | |
| parent | 750b2be8621bbdcd8253624663207d192159b855 (diff) | |
Revert "hand-pick: mediatek:remove unnecessary sido call flow"
This reverts commit 9a7858491639342b5d3c8d496d3b9370d2330591.
Diffstat (limited to 'drivers/misc')
| -rw-r--r-- | drivers/misc/mediatek/connectivity/common_detect/wmt_detect.c | 12 |
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: |
