Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a39e3fcd authored by Alexander Duyck's avatar Alexander Duyck Committed by Bjorn Helgaas
Browse files

PCI: Reorder pcibios_sriov_disable()



Move pcibios_sriov_disable() up so it's defined before a future use.

[bhelgaas: split to separate patch for reviewability]
Signed-off-by: default avatarAlexander Duyck <aduyck@mirantis.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Reviewed-by: default avatarWei Yang <weiyang@linux.vnet.ibm.com>
parent 3443c382
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -230,6 +230,11 @@ int __weak pcibios_sriov_enable(struct pci_dev *pdev, u16 num_vfs)
	return 0;
}

int __weak pcibios_sriov_disable(struct pci_dev *pdev)
{
	return 0;
}

static int sriov_enable(struct pci_dev *dev, int nr_virtfn)
{
	int rc;
@@ -344,11 +349,6 @@ static int sriov_enable(struct pci_dev *dev, int nr_virtfn)
	return rc;
}

int __weak pcibios_sriov_disable(struct pci_dev *pdev)
{
       return 0;
}

static void sriov_disable(struct pci_dev *dev)
{
	int i;