pci-epf: probe has additional APIs for Linux 6.6

The probe callback of driver "pci_epf_driver" has additonal
APIs as pci_epf_device_id for Linux 6.6 and above.

Add this new argument for Linux 6.6 and above.

Bug 4374520

Change-Id: Ie744a98947b895fce83f1a9df598ddbee2c3d138
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3014991
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Laxman Dewangan
2023-11-12 19:45:16 +00:00
committed by mobile promotions
parent 9ce6a359f7
commit 64b442b57d
3 changed files with 11 additions and 0 deletions

View File

@@ -270,7 +270,11 @@ static const struct pci_epc_event_ops pci_epf_dma_test_event_ops = {
#endif
};
#if defined(NV_PCIE_EFP_DRIVER_PROBE_HAS_ID_ARG)
static int pcie_dma_epf_probe(struct pci_epf *epf, const struct pci_epf_device_id *id)
#else
static int pcie_dma_epf_probe(struct pci_epf *epf)
#endif
{
struct device *dev = &epf->dev;
struct pcie_epf_dma *epfnv;