drm/nv50/disp: inform core when we're not creating a new context
authorBen Skeggs <bskeggs@redhat.com>
Thu, 25 Apr 2013 14:12:59 +0000 (00:12 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 26 Apr 2013 05:37:56 +0000 (15:37 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/engine/disp/nv50.c

index 02e369f..6088344 100644 (file)
@@ -719,7 +719,7 @@ nv50_disp_data_ctor(struct nouveau_object *parent,
        if (nv_mclass(parent) != NV_DEVICE_CLASS) {
                atomic_inc(&parent->refcount);
                *pobject = parent;
-               return 0;
+               return 1;
        }
 
        /* allocate display hardware to client */