diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/bus_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/bus_gk20a.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/bus_gk20a.c b/drivers/gpu/nvgpu/gk20a/bus_gk20a.c index e81a5b2a..5f25271f 100644 --- a/drivers/gpu/nvgpu/gk20a/bus_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/bus_gk20a.c | |||
@@ -27,16 +27,13 @@ | |||
27 | 27 | ||
28 | void gk20a_bus_init_hw(struct gk20a *g) | 28 | void gk20a_bus_init_hw(struct gk20a *g) |
29 | { | 29 | { |
30 | struct gk20a_platform *platform = gk20a_get_platform(g->dev); | ||
31 | |||
32 | /* enable pri timeout only on silicon */ | 30 | /* enable pri timeout only on silicon */ |
33 | if (nvgpu_platform_is_silicon(g)) { | 31 | if (nvgpu_platform_is_silicon(g)) { |
34 | gk20a_writel(g, | 32 | gk20a_writel(g, |
35 | timer_pri_timeout_r(), | 33 | timer_pri_timeout_r(), |
36 | timer_pri_timeout_period_f( | 34 | timer_pri_timeout_period_f( |
37 | platform->default_pri_timeout ? | 35 | g->default_pri_timeout ? |
38 | platform->default_pri_timeout : | 36 | g->default_pri_timeout : 0x186A0) | |
39 | 0x186A0) | | ||
40 | timer_pri_timeout_en_en_enabled_f()); | 37 | timer_pri_timeout_en_en_enabled_f()); |
41 | } else { | 38 | } else { |
42 | gk20a_writel(g, | 39 | gk20a_writel(g, |