summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/sim_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/sim_pci.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/sim_pci.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/sim_pci.c b/drivers/gpu/nvgpu/common/linux/sim_pci.c
index 9dac630c..d37767b7 100644
--- a/drivers/gpu/nvgpu/common/linux/sim_pci.c
+++ b/drivers/gpu/nvgpu/common/linux/sim_pci.c
@@ -24,11 +24,10 @@
24#include <nvgpu/nvgpu_mem.h> 24#include <nvgpu/nvgpu_mem.h>
25#include <nvgpu/dma.h> 25#include <nvgpu/dma.h>
26#include <nvgpu/hw_sim_pci.h> 26#include <nvgpu/hw_sim_pci.h>
27#include <nvgpu/sim.h>
27#include "gk20a/gk20a.h" 28#include "gk20a/gk20a.h"
28#include "os_linux.h" 29#include "os_linux.h"
29#include "module.h" 30#include "module.h"
30#include "sim.h" /* will be removed in subsequent patches */
31#include "sim_pci.h"/* will be removed in subsequent patches */
32 31
33static bool _nvgpu_pci_is_simulation(struct gk20a *g, u32 sim_base) 32static bool _nvgpu_pci_is_simulation(struct gk20a *g, u32 sim_base)
34{ 33{
@@ -50,7 +49,6 @@ void nvgpu_remove_sim_support_linux_pci(struct gk20a *g)
50 is_simulation = _nvgpu_pci_is_simulation(g, sim_r()); 49 is_simulation = _nvgpu_pci_is_simulation(g, sim_r());
51 50
52 if (!is_simulation) { 51 if (!is_simulation) {
53 nvgpu_warn(g, "not in sim_mode");
54 return; 52 return;
55 } 53 }
56 54