From: Ben Skeggs Date: Thu, 7 Dec 2017 01:08:52 +0000 (+1000) Subject: drm/nouveau/imem/nv50: fix refcount_t warning X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=81a24b9ae8eea95b74337c253059da761043ed06;p=openwrt%2Fstaging%2Fblogic.git drm/nouveau/imem/nv50: fix refcount_t warning Signed-off-by: Ben Skeggs --- 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);