/* pm8001_alloc_task - allocate a task structure for TMF  */
static struct sas_task* pm8001_alloc_task(void)
/* pm8001_alloc_task - allocate a task structure for TMF  */
static struct sas_task* pm8001_alloc_task(void)
{
	struct sas_task *task = kzalloc(sizeof(*task), GFP_KERNEL);
	if (task) {
		INIT_LIST_HEAD(&task->list);
		spin_lock_init(&task->task_state_lock);
		task->task_state_flags = SAS_TASK_STATE_PENDING;
		init_timer(&task->timer);
		init_completion(&task->completion);
	}
	return task;
}