[9610] wlbt: Guard wlbtd_init for platform where it is not enabled (Android P)
authorTarun Karela <t.karela@samsung.com>
Wed, 30 May 2018 17:13:38 +0000 (18:13 +0100)
committerYoungsoo Kim <youngss.kim@samsung.com>
Fri, 15 Jun 2018 22:48:59 +0000 (07:48 +0900)
Fixes error on platform where wlbtd is not enabled

Change-Id: Idf57cf08a4d248c1fdda46bd4572a8ad4a241766
SCSC-Bug-Id: SSB-36810
Signed-off-by: Tarun Karela <t.karela@samsung.com>
drivers/misc/samsung/scsc/mxman.c

index 02cc7628af07cabd5fc2ce3c300eb0bee0436de3..6c926422c0fd1017aad3a9a1c0271a04b8bbc6bb 100755 (executable)
@@ -1683,7 +1683,9 @@ void mxman_init(struct mxman *mxman, struct scsc_mx *mx)
 #endif
        fw_crc_wq_init(mxman);
        failure_wq_init(mxman);
+#ifdef CONFIG_SCSC_WLBTD
        wlbtd_wq_init(mxman);
+#endif
        mutex_init(&mxman->mxman_mutex);
        init_completion(&mxman->recovery_completion);
        wake_lock_init(&mxman->recovery_wake_lock, WAKE_LOCK_SUSPEND, "mxman_recovery");
@@ -1703,7 +1705,9 @@ void mxman_deinit(struct mxman *mxman)
        mxproc_remove_info_proc_dir(&mxman->mxproc);
        fw_crc_wq_deinit(mxman);
        failure_wq_deinit(mxman);
+#ifdef CONFIG_SCSC_WLBTD
        wlbtd_wq_deinit(mxman);
+#endif
        wake_lock_destroy(&mxman->recovery_wake_lock);
        mutex_destroy(&mxman->mxman_mutex);
 }