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>
Thu, 11 Jun 2009 06:15:29 +0000 (16:15 +1000)
commit2ff2e8a3e1898e692b604424c384f134009dea80
tree7eab469b77ef1635ea144baaf3202dffc6bd8d51
parentb798b1fe3b6436275ad1b517a6823d55e3b75c22
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