diff options
Diffstat (limited to 'drivers/gpu/nvgpu/clk/clk_prog.c')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_prog.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_prog.c b/drivers/gpu/nvgpu/clk/clk_prog.c index 38654b66..b4f6a464 100644 --- a/drivers/gpu/nvgpu/clk/clk_prog.c +++ b/drivers/gpu/nvgpu/clk/clk_prog.c | |||
@@ -11,11 +11,12 @@ | |||
11 | * more details. | 11 | * more details. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <nvgpu/bios.h> | ||
15 | |||
14 | #include "gk20a/gk20a.h" | 16 | #include "gk20a/gk20a.h" |
15 | #include "clk.h" | 17 | #include "clk.h" |
16 | #include "clk_prog.h" | 18 | #include "clk_prog.h" |
17 | #include "clk_vf_point.h" | 19 | #include "clk_vf_point.h" |
18 | #include "include/bios.h" | ||
19 | #include "boardobj/boardobjgrp.h" | 20 | #include "boardobj/boardobjgrp.h" |
20 | #include "boardobj/boardobjgrp_e32.h" | 21 | #include "boardobj/boardobjgrp_e32.h" |
21 | #include "gm206/bios_gm206.h" | 22 | #include "gm206/bios_gm206.h" |
@@ -180,12 +181,7 @@ static u32 devinit_get_clk_prog_table(struct gk20a *g, | |||
180 | 181 | ||
181 | gk20a_dbg_info(""); | 182 | gk20a_dbg_info(""); |
182 | 183 | ||
183 | if (!g->ops.bios.get_perf_table_ptrs) { | 184 | clkprogs_tbl_ptr = (u8 *)nvgpu_bios_get_perf_table_ptrs(g, |
184 | status = -EINVAL; | ||
185 | goto done; | ||
186 | } | ||
187 | |||
188 | clkprogs_tbl_ptr = (u8 *)g->ops.bios.get_perf_table_ptrs(g, | ||
189 | g->bios.clock_token, CLOCK_PROGRAMMING_TABLE); | 185 | g->bios.clock_token, CLOCK_PROGRAMMING_TABLE); |
190 | if (clkprogs_tbl_ptr == NULL) { | 186 | if (clkprogs_tbl_ptr == NULL) { |
191 | status = -EINVAL; | 187 | status = -EINVAL; |