/* Return: Pointer to the newly allocated completion-queue event if successful NULL otherwise.  */
struct lpfc_cq_event* lpfc_sli4_cq_event_alloc(struct lpfc_hba *phba)
/* Return: Pointer to the newly allocated completion-queue event if successful NULL otherwise.  */
struct lpfc_cq_event* lpfc_sli4_cq_event_alloc(struct lpfc_hba *phba)
{
	struct lpfc_cq_event *cq_event;
	unsigned long iflags;
	spin_lock_irqsave(&phba->hbalock, iflags);
	cq_event = __lpfc_sli4_cq_event_alloc(phba);
	spin_unlock_irqrestore(&phba->hbalock, iflags);
	return cq_event;
}