/* This routine is invoked to unset the PCI device memory space for device with SLI-3 interface spec.  */
static void lpfc_sli_pci_mem_unset(struct lpfc_hba *phba)
/* This routine is invoked to unset the PCI device memory space for device with SLI-3 interface spec.  */
static void lpfc_sli_pci_mem_unset(struct lpfc_hba *phba)
{
	struct pci_dev *pdev;
	if (!phba->pcidev)
		return;
	else
		pdev = phba->pcidev;
	dma_free_coherent(&pdev->dev, lpfc_sli_hbq_size(),
			  phba->hbqslimp.virt, phba->hbqslimp.phys);
	dma_free_coherent(&pdev->dev, SLI2_SLIM_SIZE,
			  phba->slim2p.virt, phba->slim2p.phys);
	iounmap(phba->ctrl_regs_memmap_p);
	iounmap(phba->slim_memmap_p);
	return;
}