/* Return codes pointer to @phba - successful NULL - error  */
static struct lpfc_hba* lpfc_hba_alloc(struct pci_dev *pdev)
/* Return codes pointer to @phba - successful NULL - error  */
static struct lpfc_hba* lpfc_hba_alloc(struct pci_dev *pdev)
{
	struct lpfc_hba *phba;
	phba = kzalloc(sizeof(struct lpfc_hba), GFP_KERNEL);
	if (!phba) {
		dev_err(&pdev->dev, "failed to allocate hba struct\n");
		return NULL;
	}
	phba->pcidev = pdev;
	phba->brd_no = lpfc_get_instance();
	if (phba->brd_no < 0) {
		kfree(phba);
		return NULL;
	}
	mutex_init(&phba->ct_event_mutex);
	INIT_LIST_HEAD(&phba->ct_ev_waiters);
	return phba;
}