diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp106')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/clk_arb_gp106.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp106/clk_arb_gp106.c b/drivers/gpu/nvgpu/gp106/clk_arb_gp106.c index 860344d0..001f2bfc 100644 --- a/drivers/gpu/nvgpu/gp106/clk_arb_gp106.c +++ b/drivers/gpu/nvgpu/gp106/clk_arb_gp106.c | |||
@@ -121,6 +121,10 @@ int gp106_init_clk_arbiter(struct gk20a *g) | |||
121 | 121 | ||
122 | clk_arb_dbg(g, " "); | 122 | clk_arb_dbg(g, " "); |
123 | 123 | ||
124 | if (g->clk_arb != NULL) { | ||
125 | return 0; | ||
126 | } | ||
127 | |||
124 | arb = nvgpu_kzalloc(g, sizeof(struct nvgpu_clk_arb)); | 128 | arb = nvgpu_kzalloc(g, sizeof(struct nvgpu_clk_arb)); |
125 | if (!arb) | 129 | if (!arb) |
126 | return -ENOMEM; | 130 | return -ENOMEM; |