History

PCI: host-generic: Eliminate pci_host_common_probe wrappers

Most ECAM host drivers are just different pci_ecam_ops which can be DT match table data. That's already the case in some cases, but let's do that for all the ECAM drivers. Then we can use of_device_get_match_data() in pci_host_common_probe() and eliminate the probe wrapper functions and use pci_host_common_probe() directly for probe.

Rob Herring committed 6 years ago

Commit b2f75a41 parent 0c59c067 files · +25 −44Browse files

Showing the changes to include/linux (1 of 7 files). Show all

Unified · Split

include/linux/pci-ecam.h+1−2
@@ -61,8 +61,7 @@ extern const struct pci_ecam_ops al_pcie_ops; /* Amazon Annapurna Labs PCIe */ · 60 unmodified lines
61 61
62#if IS_ENABLED(CONFIG_PCI_HOST_COMMON)62#if IS_ENABLED(CONFIG_PCI_HOST_COMMON)
63/* for DT-based PCI controllers that support ECAM */63/* for DT-based PCI controllers that support ECAM */
64int pci_host_common_probe(struct platform_device *pdev,64int pci_host_common_probe(struct platform_device *pdev);
65 const struct pci_ecam_ops *ops);
66int pci_host_common_remove(struct platform_device *pdev);65int pci_host_common_remove(struct platform_device *pdev);
67#endif66#endif
68#endif67#endif