提交 81a24b9a 编写于 作者: B Ben Skeggs

drm/nouveau/imem/nv50: fix refcount_t warning

Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册