drm: don't associate _DRM_DRIVER maps with a master
authorBen Skeggs <bskeggs@redhat.com>
Tue, 26 May 2009 00:35:52 +0000 (10:35 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 3 Jun 2009 23:47:49 +0000 (09:47 +1000)
commit6c51d1cfa0a370b48a157163340190cf5fd2346b
tree0c77e9df84de710e18a6927e6972af12e3cdfd23
parent93c05f222413e3a16e8785f252db4726693abd71
drm: don't associate _DRM_DRIVER maps with a master

A driver will use the _DRM_DRIVER map flag to indicate that it wants
to be responsible for removing the map itself, bypassing the DRM's
automagic cleanup code.

Since the multi-master changes this has been broken, resulting in some
drivers having their registers unmapped before it's finished with them.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_bufs.c