Skip to content

Commit

Permalink
drm/nouveau/imem/nv50: fix refcount_t warning
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Skeggs <[email protected]>
  • Loading branch information
Ben Skeggs committed Dec 19, 2017
1 parent f60707a commit 81a24b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 81a24b9

Please sign in to comment.