]> git.baikalelectronics.ru Git - kernel.git/commit
drm: move drm_put_minor() to drm_minor_free()
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 29 Jan 2014 11:55:48 +0000 (12:55 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sun, 16 Mar 2014 11:25:18 +0000 (12:25 +0100)
commit4a42ddee926be5b4df294cc7029c65413ceeb406
tree39e6cc83731019d8e2aa930ba3d3168c90135cc2
parent6a86cf68c5fd0820fee0a96bd00c99c92c57e8f5
drm: move drm_put_minor() to drm_minor_free()

_put/get() are used for ref-counting, which we clearly don't do here.
Rename it to _free() and also use the common drm_minor_* prefix.
Furthermore, avoid passing the minor directly but instead use the type
like the other functions do, this allows us to reset the slot.

We also drop the redundant call to drm_unplug_minor() as drm_minor_free()
is only used from paths were that has already be called.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_stub.c