diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/platform_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/platform_gk20a.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h index 99ea1bb7..d685639b 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h | |||
@@ -35,9 +35,6 @@ struct secure_page_buffer { | |||
35 | }; | 35 | }; |
36 | 36 | ||
37 | struct gk20a_platform { | 37 | struct gk20a_platform { |
38 | #ifdef CONFIG_TEGRA_GK20A | ||
39 | u32 syncpt_base; | ||
40 | #endif | ||
41 | /* Populated by the gk20a driver before probing the platform. */ | 38 | /* Populated by the gk20a driver before probing the platform. */ |
42 | struct gk20a *g; | 39 | struct gk20a *g; |
43 | 40 | ||
@@ -277,8 +274,12 @@ extern struct gk20a_platform vgpu_tegra_platform; | |||
277 | 274 | ||
278 | static inline bool gk20a_platform_has_syncpoints(struct device *dev) | 275 | static inline bool gk20a_platform_has_syncpoints(struct device *dev) |
279 | { | 276 | { |
277 | #ifdef CONFIG_TEGRA_GK20A_NVHOST | ||
280 | struct gk20a_platform *p = dev_get_drvdata(dev); | 278 | struct gk20a_platform *p = dev_get_drvdata(dev); |
281 | return p->has_syncpoints && !p->disable_syncpoints; | 279 | return p->has_syncpoints && !p->disable_syncpoints; |
280 | #else | ||
281 | return false; | ||
282 | #endif | ||
282 | } | 283 | } |
283 | 284 | ||
284 | int gk20a_tegra_busy(struct device *dev); | 285 | int gk20a_tegra_busy(struct device *dev); |