drm/nouveau/fb: remove some (now) unnecessary hacks
authorBen Skeggs <bskeggs@redhat.com>
Wed, 3 Dec 2014 06:43:16 +0000 (16:43 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 22 Jan 2015 02:14:42 +0000 (12:14 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/fb/base.c

index c866148c440fee88d063736545f38cc35fb6bec7..31869ff30740b61a0716d0e0e1e6b293b67899fe 100644 (file)
@@ -135,8 +135,6 @@ nouveau_fb_create_(struct nouveau_object *parent, struct nouveau_object *engine,
                return ret;
        }
 
-       atomic_dec(&ram->parent->refcount);
-       atomic_dec(&ram->engine->refcount);
        pfb->ram = (void *)ram;
 
        if (!nouveau_mm_initialised(&pfb->vram)) {