PCI: Reorder pcibios_sriov_disable()
authorAlexander Duyck <aduyck@mirantis.com>
Thu, 29 Oct 2015 21:21:11 +0000 (16:21 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 30 Oct 2015 20:14:33 +0000 (15:14 -0500)
Move pcibios_sriov_disable() up so it's defined before a future use.

[bhelgaas: split to separate patch for reviewability]
Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Wei Yang <weiyang@linux.vnet.ibm.com>
drivers/pci/iov.c

index c86d94c0c7a491aef2ae0c135ecf6db2392c93ff..fada98da731b30b956b4c756d4bab5f61f51e480 100644 (file)
@@ -227,7 +227,12 @@ static void virtfn_remove(struct pci_dev *dev, int id, int reset)
 
 int __weak pcibios_sriov_enable(struct pci_dev *pdev, u16 num_vfs)
 {
-       return 0;
+       return 0;
+}
+
+int __weak pcibios_sriov_disable(struct pci_dev *pdev)
+{
+       return 0;
 }
 
 static int sriov_enable(struct pci_dev *dev, int nr_virtfn)
@@ -344,11 +349,6 @@ failed:
        return rc;
 }
 
-int __weak pcibios_sriov_disable(struct pci_dev *pdev)
-{
-       return 0;
-}
-
 static void sriov_disable(struct pci_dev *dev)
 {
        int i;
This page took 0.024813 seconds and 5 git commands to generate.