/* Return codes 0 - successful other values - error  */
static int lpfc_setup_driver_resource_phase1(struct lpfc_hba *phba)
/* Return codes 0 - successful other values - error  */
static int lpfc_setup_driver_resource_phase1(struct lpfc_hba *phba)
{
	atomic_set(&phba->fast_event_count, 0);
	spin_lock_init(&phba->hbalock);
	spin_lock_init(&phba->ndlp_lock);
	INIT_LIST_HEAD(&phba->port_list);
	INIT_LIST_HEAD(&phba->work_list);
	init_waitqueue_head(&phba->wait_4_mlo_m_q);
	init_waitqueue_head(&phba->work_waitq);
	spin_lock_init(&phba->scsi_buf_list_lock);
	INIT_LIST_HEAD(&phba->lpfc_scsi_buf_list);
	INIT_LIST_HEAD(&phba->fabric_iocb_list);
	INIT_LIST_HEAD(&phba->elsbuf);
	INIT_LIST_HEAD(&phba->fcf_conn_rec_list);
	return 0;
}