Bluetooth: Fix missing scheduling when VIRTUAL_CABLE_UNPLUG is received
[pandora-kernel.git] / net / bluetooth / hidp / core.c
index acdeab3..a9f7afb 100644 (file)
 
 #include "hidp.h"
 
-#ifndef CONFIG_BT_HIDP_DEBUG
-#undef  BT_DBG
-#define BT_DBG(D...)
-#endif
-
 #define VERSION "1.2"
 
 static DECLARE_RWSEM(hidp_session_sem);
@@ -379,6 +374,7 @@ static void hidp_process_hid_control(struct hidp_session *session,
 
                /* Kill session thread */
                atomic_inc(&session->terminate);
+               hidp_schedule(session);
        }
 }