summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2017-12-07 11:08:52 +1000
committerBen Skeggs <bskeggs@redhat.com>2017-12-19 10:16:37 +1000
commit81a24b9ae8eea95b74337c253059da761043ed06 (patch)
tree9abaf3dea87f1b1b664c2ebc249e8c711a5c3370
parentf60707a69a225f2dd87f42628b44e24ceb219d28 (diff)
downloadlinux-81a24b9ae8eea95b74337c253059da761043ed06.tar.gz
linux-81a24b9ae8eea95b74337c253059da761043ed06.tar.bz2
linux-81a24b9ae8eea95b74337c253059da761043ed06.zip
drm/nouveau/imem/nv50: fix refcount_t warning
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c b/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c
index 1ba7289684aa..db48a1daca0c 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c
+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c
@@ -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);