]> git.baikalelectronics.ru Git - kernel.git/commit
drm: call drm_unplug_minor() from drm_put_minor()
authorDavid Herrmann <dh.herrmann@gmail.com>
Sun, 20 Oct 2013 16:55:40 +0000 (18:55 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 6 Nov 2013 04:52:51 +0000 (14:52 +1000)
commite0f6b751f99df32980fd509c130cf9e2df8103be
tree65c094572c8989e5edbec7e2a16c187c725f2fb8
parentb263ee1325c3efbb4e4712b9d80f3193cd27a719
drm: call drm_unplug_minor() from drm_put_minor()

This protects drm_unplug_minor() against repeated calls so we can use it
in drm_put_minor(). This allows us to further simplify it in follow-ups as
we no longer do minor-destruction in both functions but only in
drm_unplug_minor().
Also add kernel-doc comments about what these calls do.

[airlied: fixup for changes to kdev stuff]
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_stub.c