/* This routine is invoked to disable the PCI device that is common to all PCI devices.  */
static void lpfc_disable_pci_dev(struct lpfc_hba *phba)
/* This routine is invoked to disable the PCI device that is common to all PCI devices.  */
static void lpfc_disable_pci_dev(struct lpfc_hba *phba)
{
	struct pci_dev *pdev;
	int bars;
	if (!phba->pcidev)
		return;
	else
		pdev = phba->pcidev;
	bars = pci_select_bars(pdev, IORESOURCE_MEM);
	pci_release_selected_regions(pdev, bars);
	pci_disable_device(pdev);
	pci_set_drvdata(pdev, NULL);
	return;
}