diff --git a/drivers/pci/endpoint/functions/pci-epf-tegra-dma-sanity.c b/drivers/pci/endpoint/functions/pci-epf-tegra-dma-sanity.c index 2a065c88..a826c98b 100644 --- a/drivers/pci/endpoint/functions/pci-epf-tegra-dma-sanity.c +++ b/drivers/pci/endpoint/functions/pci-epf-tegra-dma-sanity.c @@ -1,7 +1,8 @@ // SPDX-License-Identifier: GPL-2.0-only -/* - * SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. - */ +// SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + +#include + #include #include #include @@ -349,7 +350,11 @@ static const struct pci_epf_device_id pcie_dma_epf_sanity_ids[] = { }; static const struct pci_epc_event_ops pci_epf_dma_sanity_event_ops = { +#if defined(NV_PCI_EPC_EVENT_OPS_STRUCT_HAS_EPC_INIT) /* Linux v6.11 */ + .epc_init = pcie_epf_dma_sanity_core_init, +#else .core_init = pcie_epf_dma_sanity_core_init, +#endif }; static struct pci_epf_ops ops = {