PCI/PTM: Reorder functions in logical order
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 9 Sep 2022 20:25:03 +0000 (15:25 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 12 Sep 2022 20:29:52 +0000 (15:29 -0500)
commit8b367e75ac482486bbfd1ca832734bec64498f73
tree617e4a015e8ecd9619ae9b991674f5eac4c8a876
parent2b89c22f2434b931b3cf22298ac5f5ec089e9ad1
PCI/PTM: Reorder functions in logical order

pci_enable_ptm() and pci_disable_ptm() were separated.
pci_save_ptm_state() and pci_restore_ptm_state() dangled at the top.  Move
them to logical places.  No functional change intended.

Link: https://lore.kernel.org/r/20220909202505.314195-8-helgaas@kernel.org
Tested-by: Rajvi Jingar <rajvi.jingar@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/pci/pcie/ptm.c