diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c index 3fb35e94..ddd94a2d 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | |||
@@ -966,7 +966,7 @@ void gk20a_channel_sync_destroy(struct gk20a_channel_sync *sync) | |||
966 | struct gk20a_channel_sync *gk20a_channel_sync_create(struct channel_gk20a *c) | 966 | struct gk20a_channel_sync *gk20a_channel_sync_create(struct channel_gk20a *c) |
967 | { | 967 | { |
968 | #ifdef CONFIG_TEGRA_GK20A_NVHOST | 968 | #ifdef CONFIG_TEGRA_GK20A_NVHOST |
969 | if (gk20a_platform_has_syncpoints(c->g->dev)) | 969 | if (gk20a_platform_has_syncpoints(c->g)) |
970 | return gk20a_channel_syncpt_create(c); | 970 | return gk20a_channel_syncpt_create(c); |
971 | #endif | 971 | #endif |
972 | return gk20a_channel_semaphore_create(c); | 972 | return gk20a_channel_semaphore_create(c); |
@@ -974,7 +974,7 @@ struct gk20a_channel_sync *gk20a_channel_sync_create(struct channel_gk20a *c) | |||
974 | 974 | ||
975 | bool gk20a_channel_sync_needs_sync_framework(struct channel_gk20a *c) | 975 | bool gk20a_channel_sync_needs_sync_framework(struct channel_gk20a *c) |
976 | { | 976 | { |
977 | if (gk20a_platform_has_syncpoints(c->g->dev)) | 977 | if (gk20a_platform_has_syncpoints(c->g)) |
978 | return false; | 978 | return false; |
979 | return true; | 979 | return true; |
980 | } | 980 | } |