Esempio n. 1
0
void iwl_drv_stop(struct iwl_drv *drv)
{
	wait_for_completion(&drv->request_firmware_complete);

	/* op_mode can be NULL if its start failed */
	if (drv->op_mode)
		iwl_op_mode_stop(drv->op_mode);

	iwl_dealloc_ucode(drv);

	kfree(drv);
}
void iwl_drv_stop(struct iwl_shared *shrd)
{
	struct iwl_drv *drv = shrd->drv;

	wait_for_completion(&drv->request_firmware_complete);

	
	if (drv->op_mode)
		iwl_op_mode_stop(drv->op_mode);

	iwl_dealloc_ucode(drv);

	kfree(drv);
	shrd->drv = NULL;
}