]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit707fce2a25b1e0ceb2f97d9f0c7c9d85623bad89
tree4bc465f3583dd76d0086b823d7113fe97820243f
parent5fbe9939c76e72129b7869c0390dcd8b1228e3d3
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