diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-08-18 13:56:36 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-08-22 11:55:15 -0400 |
commit | b53336585bccfc730c714ba249b4d67c2a7c4d38 (patch) | |
tree | 9f9ecf03e0a1bdd43bcd5bd35e3f7084ed1a1c3a /drivers/gpu/nvgpu/gm206 | |
parent | af9e70f4d17638d5131e558730d8783255b4779e (diff) |
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 <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1541511
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sourab Gupta <sourabg@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gm206')
-rw-r--r-- | drivers/gpu/nvgpu/gm206/bios_gm206.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ | |||
25 | #include "gm20b/fifo_gm20b.h" | 25 | #include "gm20b/fifo_gm20b.h" |
26 | #include "bios_gm206.h" | 26 | #include "bios_gm206.h" |
27 | #include "gp106/mclk_gp106.h" | 27 | #include "gp106/mclk_gp106.h" |
28 | #ifdef CONFIG_DEBUG_FS | ||
28 | #include "common/linux/os_linux.h" | 29 | #include "common/linux/os_linux.h" |
30 | #endif | ||
29 | 31 | ||
30 | #include <nvgpu/hw/gm206/hw_pwr_gm206.h> | 32 | #include <nvgpu/hw/gm206/hw_pwr_gm206.h> |
31 | #include <nvgpu/hw/gm206/hw_mc_gm206.h> | 33 | #include <nvgpu/hw/gm206/hw_mc_gm206.h> |