PCI: Move pci_match_device() ahead of new_id_store()
authorZhenzhong Duan <zhenzhong.duan@gmail.com>
Tue, 17 Nov 2020 05:44:08 +0000 (13:44 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 20 Nov 2020 21:51:35 +0000 (15:51 -0600)
commit1f40704bb01b9fba9925006662a37373d514f26b
tree4bc465f3583dd76d0086b823d7113fe97820243f
parent341917490d7d68d2f7267a265b8820fc3f8ead1b
PCI: Move pci_match_device() ahead of new_id_store()

Move pci_match_device() and its dependencies (pci_match_id() and
pci_device_id_any) ahead of new_id_store().

This is preparation work for calling pci_match_device() in new_id_store().
No functional changes.

[bhelgaas: update function comments]
Link: https://lore.kernel.org/r/20201117054409.3428-2-zhenzhong.duan@gmail.com
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci-driver.c