]> git.baikalelectronics.ru Git - kernel.git/commit
drm: simplify drm_put_minor()
authorDavid Herrmann <dh.herrmann@gmail.com>
Sun, 20 Oct 2013 16:55:41 +0000 (18:55 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 6 Nov 2013 04:53:23 +0000 (14:53 +1000)
commit892e3757aaeeea33ceb4d37e7d0025ddb420aa2a
treef50c08aa8fdad6ff571711ba5b202ac11b5a58e3
parent3e0c8238d95f86d02a3cfd9bca83c7fba05bdaca
drm: simplify drm_put_minor()

Allow passing NULL as minor to simplify DRM destruction paths. Also remove
the double-pointer reset as it is no longer needed. drm_put_minor() is
only called when the underlying object is destroyed. Hence, resetting
minors to NULL is not necessary.

As drm_put_minor() is no longer used by other DRM files, we can make it
static, too.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_stub.c
include/drm/drmP.h