diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/as.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/as.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/as.c b/drivers/gpu/nvgpu/common/as.c index 99d18195..0ff5bc6c 100644 --- a/drivers/gpu/nvgpu/common/as.c +++ b/drivers/gpu/nvgpu/common/as.c | |||
@@ -49,8 +49,7 @@ static int gk20a_vm_alloc_share(struct gk20a_as_share *as_share, | |||
49 | gk20a_dbg_fn(""); | 49 | gk20a_dbg_fn(""); |
50 | 50 | ||
51 | if (big_page_size == 0) { | 51 | if (big_page_size == 0) { |
52 | big_page_size = | 52 | big_page_size = g->ops.mm.get_default_big_page_size(); |
53 | gk20a_get_platform(g->dev)->default_big_page_size; | ||
54 | } else { | 53 | } else { |
55 | if (!is_power_of_2(big_page_size)) | 54 | if (!is_power_of_2(big_page_size)) |
56 | return -EINVAL; | 55 | return -EINVAL; |