diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-10-02 11:23:38 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-10-09 15:55:27 +1000 |
commit | c3a49737ef7db0bdd4fcf6cf0b7140a883e32b2a (patch) | |
tree | 94ce7f5c10bcc289b42d58e57462ad56aaa4e2fe /include | |
parent | 0dc8fe5985e01f238e7dc64ff1733cc0291811e8 (diff) | |
download | linux-stable-c3a49737ef7db0bdd4fcf6cf0b7140a883e32b2a.tar.gz linux-stable-c3a49737ef7db0bdd4fcf6cf0b7140a883e32b2a.tar.bz2 linux-stable-c3a49737ef7db0bdd4fcf6cf0b7140a883e32b2a.zip |
drm: move device unregistration into drm_dev_unregister()
Analog to drm_dev_register(), we now provide drm_dev_unregister() which
does the reverse. drm_dev_put() is still in place and combines the calls
to drm_dev_unregister() and drm_dev_free() so buses don't have to change.
*_get() and *_put() are used for reference-counting in the kernel.
However, drm_dev_put() definitely does not do any kind of ref-counting.
Hence, use the more appropriate *_register(), *_unregister(), *_alloc()
and *_free() names.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/drm/drmP.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 537833c9ab83..2b9b033efea4 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -1644,6 +1644,7 @@ struct drm_device *drm_dev_alloc(struct drm_driver *driver, struct device *parent); void drm_dev_free(struct drm_device *dev); int drm_dev_register(struct drm_device *dev, unsigned long flags); +void drm_dev_unregister(struct drm_device *dev); int drm_get_minor(struct drm_device *dev, struct drm_minor **minor, int type); /*@}*/ |