From: Ben Skeggs Date: Thu, 25 Apr 2013 14:12:59 +0000 (+1000) Subject: drm/nv50/disp: inform core when we're not creating a new context X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=43e6e51c037cafac5047a65cfa9d37b450157af1;p=linux-beck.git drm/nv50/disp: inform core when we're not creating a new context Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/core/engine/disp/nv50.c b/drivers/gpu/drm/nouveau/core/engine/disp/nv50.c index 02e369f80449..608834449e52 100644 --- a/drivers/gpu/drm/nouveau/core/engine/disp/nv50.c +++ b/drivers/gpu/drm/nouveau/core/engine/disp/nv50.c @@ -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 */