diff options
Diffstat (limited to 'drivers/gpu/nvgpu/clk/clk_mclk.c')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_mclk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_mclk.c b/drivers/gpu/nvgpu/clk/clk_mclk.c index e5452051..16852b5e 100644 --- a/drivers/gpu/nvgpu/clk/clk_mclk.c +++ b/drivers/gpu/nvgpu/clk/clk_mclk.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/delay.h> | 14 | #include <linux/delay.h> |
15 | 15 | ||
16 | #include <nvgpu/bios.h> | 16 | #include <nvgpu/bios.h> |
17 | #include <nvgpu/kmem.h> | ||
17 | 18 | ||
18 | #include "gk20a/gk20a.h" | 19 | #include "gk20a/gk20a.h" |
19 | #include "gk20a/pmu_gk20a.h" | 20 | #include "gk20a/pmu_gk20a.h" |
@@ -2216,8 +2217,7 @@ int clk_mclkseq_init_mclk_gddr5(struct gk20a *g) | |||
2216 | mclk->p0_min = p0_info->min_mhz; | 2217 | mclk->p0_min = p0_info->min_mhz; |
2217 | 2218 | ||
2218 | 2219 | ||
2219 | mclk->vreg_buf = kcalloc(VREG_COUNT, | 2220 | mclk->vreg_buf = nvgpu_kcalloc(g, VREG_COUNT, sizeof(u32)); |
2220 | sizeof(u32), GFP_KERNEL); | ||
2221 | if (!mclk->vreg_buf) { | 2221 | if (!mclk->vreg_buf) { |
2222 | gk20a_err(dev_from_gk20a(g), | 2222 | gk20a_err(dev_from_gk20a(g), |
2223 | "unable to allocate memory for VREG"); | 2223 | "unable to allocate memory for VREG"); |