software/drivers/sd8887/src/bluetooth/bt/bt_main.c
/**
 *  @brief This function cleans module
 *
 *  @return        N/A
 */
@brief This function cleans module
@return        N/A
@brief This function cleans module @return N / A
static void
bt_exit_module(void)
{
	bt_private *priv;
	int index;
	ENTER();
	PRINTM(MSG, "BT: Unloading driver\n");
	for (index = 0; index < MAX_BT_ADAPTER; index++) {
		priv = m_priv[index];
		if (!priv)
			continue;
		if (priv && !priv->adapter->SurpriseRemoved) {
			if (BT_STATUS_SUCCESS == bt_send_reset_command(priv))
				bt_send_module_cfg_cmd(priv,
						       MODULE_SHUTDOWN_REQ);
		}
		sbi_disable_host_int(priv);
	}
	sbi_unregister();
	bt_root_proc_remove();
	class_destroy(chardev_class);
	PRINTM(MSG, "BT: Driver unloaded\n");
	LEAVE();
}
static void bt_exit_module ( void ) { bt_private * priv ; int index ; ENTER ( ) ; PRINTM ( MSG , " \n " ) ; for ( index = 0 ; index < MAX_BT_ADAPTER ; index ++ ) { priv = m_priv [ index ] ; if ( ! priv ) continue ; if ( priv && ! priv -> adapter -> SurpriseRemoved ) { if ( BT_STATUS_SUCCESS == bt_send_reset_command ( priv ) ) bt_send_module_cfg_cmd ( priv , MODULE_SHUTDOWN_REQ ) ; } sbi_disable_host_int ( priv ) ; } sbi_unregister ( ) ; bt_root_proc_remove ( ) ; class_destroy ( chardev_class ) ; PRINTM ( MSG , " \n " ) ; LEAVE ( ) ; }
@brief This function cleans module
  @return        N/A
@brief This function cleans module @return N / A