gpu: nvgpu: fix tegra_pcie_detach/attach_controller API for K4.14

For K4.14, the pci driver is enabled with CONFIG_PCIE_TEGRA=y. The
check of dummy APIs doesn't capture this config. Fix this to use
tegra_pcie_detach/attach_controller() APIs from the pci driver.

Bug 200480179
JIRA NVGPU-1100

Change-Id: I3a2b4f243dce6ead1174b12bc8ce2ffb6700c86b
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1982549
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Nitin Kumbhar
2018-12-27 12:36:55 +05:30
committed by mobile promotions
parent 5ac1e40296
commit 001dbdb2fc

View File

@@ -380,7 +380,7 @@ static const struct file_operations debug_power_stats_fops = {
.release = single_release,
};
#if !IS_ENABLED(CONFIG_PCIE_TEGRA_DW) || \
#if (!IS_ENABLED(CONFIG_PCIE_TEGRA_DW) && !IS_ENABLED(CONFIG_PCIE_TEGRA)) || \
!IS_ENABLED(CONFIG_ARCH_TEGRA_19x_SOC) || \
LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 0)
void *tegra_pcie_detach_controller(struct pci_dev *pdev)