/* This routine stops all the timers associated with a HBA. This function is invoked before either putting a HBA offline or unloading the driver.  */
void lpfc_stop_hba_timers(struct lpfc_hba *phba)
/* This routine stops all the timers associated with a HBA. This function is invoked before either putting a HBA offline or unloading the driver.  */
void lpfc_stop_hba_timers(struct lpfc_hba *phba)
{
	lpfc_stop_vport_timers(phba->pport);
	del_timer_sync(&phba->sli.mbox_tmo);
	del_timer_sync(&phba->fabric_block_timer);
	del_timer_sync(&phba->eratt_poll);
	del_timer_sync(&phba->hb_tmofunc);
	phba->hb_outstanding = 0;
	switch (phba->pci_dev_grp) {
	case LPFC_PCI_DEV_LP:
		del_timer_sync(&phba->fcp_poll_timer);
		break;
	case LPFC_PCI_DEV_OC:
		break;
	default:
		lpfc_printf_log(phba, KERN_ERR, LOG_INIT,
				"0297 Invalid device group (x%x)\n",
				phba->pci_dev_grp);
		break;
	}
	return;
}