diff options
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/vgpu.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.c b/drivers/gpu/nvgpu/vgpu/vgpu.c index c8ab23f1..d8e0dfa1 100644 --- a/drivers/gpu/nvgpu/vgpu/vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/vgpu.c | |||
@@ -31,10 +31,6 @@ | |||
31 | 31 | ||
32 | #include <nvgpu/hw/gk20a/hw_mc_gk20a.h> | 32 | #include <nvgpu/hw/gk20a/hw_mc_gk20a.h> |
33 | 33 | ||
34 | #ifdef CONFIG_ARCH_TEGRA_18x_SOC | ||
35 | #include "nvgpu_gpuid_t18x.h" | ||
36 | #endif | ||
37 | |||
38 | static inline int vgpu_comm_init(struct platform_device *pdev) | 34 | static inline int vgpu_comm_init(struct platform_device *pdev) |
39 | { | 35 | { |
40 | size_t queue_sizes[] = { TEGRA_VGPU_QUEUE_SIZES }; | 36 | size_t queue_sizes[] = { TEGRA_VGPU_QUEUE_SIZES }; |
@@ -374,11 +370,10 @@ static int vgpu_init_hal(struct gk20a *g) | |||
374 | gk20a_dbg_info("gm20b detected"); | 370 | gk20a_dbg_info("gm20b detected"); |
375 | err = vgpu_gm20b_init_hal(g); | 371 | err = vgpu_gm20b_init_hal(g); |
376 | break; | 372 | break; |
377 | #if defined(CONFIG_ARCH_TEGRA_18x_SOC) | 373 | case NVGPU_GPUID_GP10B: |
378 | case TEGRA_18x_GPUID: | 374 | gk20a_dbg_info("gp10b detected"); |
379 | err = TEGRA_18x_GPUID_VGPU_HAL(g); | 375 | err = vgpu_gp10b_init_hal(g); |
380 | break; | 376 | break; |
381 | #endif | ||
382 | default: | 377 | default: |
383 | gk20a_err(g->dev, "no support for %x", ver); | 378 | gk20a_err(g->dev, "no support for %x", ver); |
384 | err = -ENODEV; | 379 | err = -ENODEV; |