From b53336585bccfc730c714ba249b4d67c2a7c4d38 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Fri, 18 Aug 2017 10:56:36 -0700 Subject: gpu: nvgpu: Use os_linux.h only for debugfs gm206_bios_init() uses nvgpu_os_linux only for accessing debugfs. That's the only reason os_linux.h is included. Make the #include conditional and enabled only when debugfs is enabled. Change-Id: I2939d51a25865ab634c92676daa9a7c10551fee5 Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1541511 Reviewed-by: svccoveritychecker Reviewed-by: svc-mobile-coverity Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sourab Gupta GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/gm206/bios_gm206.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gpu/nvgpu/gm206') diff --git a/drivers/gpu/nvgpu/gm206/bios_gm206.c b/drivers/gpu/nvgpu/gm206/bios_gm206.c index 7be77ad3..b0626d19 100644 --- a/drivers/gpu/nvgpu/gm206/bios_gm206.c +++ b/drivers/gpu/nvgpu/gm206/bios_gm206.c @@ -25,7 +25,9 @@ #include "gm20b/fifo_gm20b.h" #include "bios_gm206.h" #include "gp106/mclk_gp106.h" +#ifdef CONFIG_DEBUG_FS #include "common/linux/os_linux.h" +#endif #include #include -- cgit v1.2.2