drm/nouveau/core: rebase object ref/use counts after ctor/init/fini events
authorBen Skeggs <bskeggs@redhat.com>
Wed, 24 Apr 2013 07:34:18 +0000 (17:34 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 26 Apr 2013 05:37:57 +0000 (15:37 +1000)
commitdb91d68c9b5ca22e1fa25569bbde4895ade9dac0
tree761803aca660b59a9cc71cfd60cd4c3388213400
parent43e6e51c037cafac5047a65cfa9d37b450157af1
drm/nouveau/core: rebase object ref/use counts after ctor/init/fini events

This is intended to support named (with a handle, etc) objects having
children that don't have an outside reference.

This will replace the various hacks around the place where subdev
objects have children, and have to manually drop the self-refs so
that they can be destroyed etc when all the outside refs have gone.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/core/object.c