/* This routine is invoked to unset the HBA device initialization steps to a device with SLI-3 interface spec.  */
static void lpfc_unset_hba(struct lpfc_hba *phba)
/* This routine is invoked to unset the HBA device initialization steps to a device with SLI-3 interface spec.  */
static void lpfc_unset_hba(struct lpfc_hba *phba)
{
	struct lpfc_vport *vport = phba->pport;
	struct Scsi_Host  *shost = lpfc_shost_from_vport(vport);
	spin_lock_irq(shost->host_lock);
	vport->load_flag |= FC_UNLOADING;
	spin_unlock_irq(shost->host_lock);
	lpfc_stop_hba_timers(phba);
	phba->pport->work_port_events = 0;
	lpfc_sli_hba_down(phba);
	lpfc_sli_brdrestart(phba);
	lpfc_sli_disable_intr(phba);
	return;
}