diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2014-10-02 08:09:20 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:36 -0400 |
commit | 2870a4bcecf93133141aee9f4d9007f0df22cfa8 (patch) | |
tree | 4494762e8b0710dc37b318b8d3915f547a0d10af /drivers/gpu/nvgpu/gk20a/platform_gk20a.h | |
parent | 17e4b7ff3f48aca2d258f246a1eef4ed32dd53a2 (diff) |
gpu: nvgpu: Add no-op stubs for vgpu
Implement empty or -ENOSYS functions for vgpu if
CONFIG_TEGRA_GR_VIRTUALIZATION is not enabled, and remove ifdefs around
the calling code.
Change-Id: Idc75c9bc486d661786bc222bd9e0380aa7766e78
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/552898
Reviewed-by: Aingara Paramakuru <aparamakuru@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/platform_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/platform_gk20a.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h index e6ed9898..ce0209fb 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h | |||
@@ -152,8 +152,8 @@ struct gk20a_platform { | |||
152 | */ | 152 | */ |
153 | void (*dump_platform_dependencies)(struct platform_device *dev); | 153 | void (*dump_platform_dependencies)(struct platform_device *dev); |
154 | 154 | ||
155 | #ifdef CONFIG_TEGRA_GR_VIRTUALIZATION | ||
156 | bool virtual_dev; | 155 | bool virtual_dev; |
156 | #ifdef CONFIG_TEGRA_GR_VIRTUALIZATION | ||
157 | u64 virt_handle; | 157 | u64 virt_handle; |
158 | struct task_struct *intr_handler; | 158 | struct task_struct *intr_handler; |
159 | #endif | 159 | #endif |