drm: adapt and use drm_close
authorSimon Schubert <corecode@dragonflybsd.org>
Thu, 28 May 2009 07:52:42 +0000 (09:52 +0200)
committerSimon Schubert <corecode@dragonflybsd.org>
Thu, 28 May 2009 08:01:14 +0000 (10:01 +0200)
commit2c845b818bedb7bc942386f73cb1d59e884a2c78
tree35d4457357456b696dd7ecd6e17c39108183a350
parent266739768854eaa6260513768383d7d8278d1815
drm: adapt and use drm_close

While importing the last drm code, drm_close was not properly ported and
integrated.  Thus, opens only incremented the reference count, but code
for closes and decrementing the reference count never was executed.

As a result, Xorg drivers, which during probing drm open and close the
device several times, would not be able to perform certain operations
due to a wrong reference count.
sys/dev/drm/drmP.h
sys/dev/drm/drm_drv.c