From 61e2b47b21844b758214f5d17e5bab28ecfba5d2 Mon Sep 17 00:00:00 2001 From: Vinod G Date: Wed, 1 May 2019 15:29:25 -0700 Subject: [PATCH] gpu: nvgpu: remove unused gr_priv.h include Remove the unused gr_priv.h include from files outside gr unit. Jira NVGPU-3218 Change-Id: I104c24fbd50523303ef1921a62c5dde99298a87e Signed-off-by: Vinod G Reviewed-on: https://git-master.nvidia.com/r/2109711 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/acr/acr_blob_construct_v0.c | 1 - drivers/gpu/nvgpu/common/vgpu/init/init_vgpu.c | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/nvgpu/common/acr/acr_blob_construct_v0.c b/drivers/gpu/nvgpu/common/acr/acr_blob_construct_v0.c index b476917e1..dc5f84e87 100644 --- a/drivers/gpu/nvgpu/common/acr/acr_blob_construct_v0.c +++ b/drivers/gpu/nvgpu/common/acr/acr_blob_construct_v0.c @@ -27,7 +27,6 @@ #include #include #include -#include "common/gr/gr_priv.h" #include #include "common/gr/gr_priv.h" diff --git a/drivers/gpu/nvgpu/common/vgpu/init/init_vgpu.c b/drivers/gpu/nvgpu/common/vgpu/init/init_vgpu.c index 8c1e72b1b..701197cd6 100644 --- a/drivers/gpu/nvgpu/common/vgpu/init/init_vgpu.c +++ b/drivers/gpu/nvgpu/common/vgpu/init/init_vgpu.c @@ -34,6 +34,7 @@ #include #include #include +#include #include "init_vgpu.h" #include "init_hal_vgpu.h" @@ -43,7 +44,6 @@ #include "common/vgpu/gr/gr_vgpu.h" #include "common/vgpu/fbp/fbp_vgpu.h" #include "common/vgpu/ivc/comm_vgpu.h" -#include "common/gr/gr_priv.h" u64 vgpu_connect(void) { @@ -72,9 +72,7 @@ void vgpu_remove_support_common(struct gk20a *g) g->pmu.remove_support(&g->pmu); } - if (g->gr->remove_support) { - g->gr->remove_support(g); - } + nvgpu_gr_remove_support(g); if (g->fifo.remove_support) { g->fifo.remove_support(&g->fifo);