summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c')
-rw-r--r--drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c b/drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c
index 24a76a0b..02b7b48d 100644
--- a/drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c
+++ b/drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c
@@ -123,7 +123,7 @@ void nvgpu_alloc_destroy(struct nvgpu_allocator *a)
123/* 123/*
124 * Handle the common init stuff for a nvgpu_allocator. 124 * Handle the common init stuff for a nvgpu_allocator.
125 */ 125 */
126int __nvgpu_alloc_common_init(struct nvgpu_allocator *a, 126int __nvgpu_alloc_common_init(struct nvgpu_allocator *a, struct gk20a *g,
127 const char *name, void *priv, bool dbg, 127 const char *name, void *priv, bool dbg,
128 const struct nvgpu_allocator_ops *ops) 128 const struct nvgpu_allocator_ops *ops)
129{ 129{
@@ -143,6 +143,7 @@ int __nvgpu_alloc_common_init(struct nvgpu_allocator *a,
143 if (err) 143 if (err)
144 return err; 144 return err;
145 145
146 a->g = g;
146 a->ops = ops; 147 a->ops = ops;
147 a->priv = priv; 148 a->priv = priv;
148 a->debug = dbg; 149 a->debug = dbg;