Commit 81a24b9a authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/imem/nv50: fix refcount_t warning

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent f60707a6
......@@ -249,7 +249,7 @@ nv50_instobj_acquire(struct nvkm_memory *memory)
iobj->base.memory.ptrs = &nv50_instobj_fast;
else
iobj->base.memory.ptrs = &nv50_instobj_slow;
refcount_inc(&iobj->maps);
refcount_set(&iobj->maps, 1);
}
mutex_unlock(&imem->subdev.mutex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment