#define LINK_RETRAIN_TIMEOUT HZ
 
+/*
+ * The L1 PM substate capability is only implemented in function 0 in a
+ * multi function device.
+ */
+static struct pci_dev *pci_function_0(struct pci_bus *linkbus)
+{
+       struct pci_dev *child;
+
+       list_for_each_entry(child, &linkbus->devices, bus_list)
+               if (PCI_FUNC(child->devfn) == 0)
+                       return child;
+       return NULL;
+}
+
 static int policy_to_aspm_state(struct pcie_link_state *link)
 {
        switch (aspm_policy) {
        }
 }
 
-/*
- * The L1 PM substate capability is only implemented in function 0 in a
- * multi function device.
- */
-static struct pci_dev *pci_function_0(struct pci_bus *linkbus)
-{
-       struct pci_dev *child;
-
-       list_for_each_entry(child, &linkbus->devices, bus_list)
-               if (PCI_FUNC(child->devfn) == 0)
-                       return child;
-       return NULL;
-}
-
 static void pci_clear_and_set_dword(struct pci_dev *pdev, int pos,
                                    u32 clear, u32 set)
 {