aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-10-20 12:55:41 -0400
committerDave Airlie <airlied@redhat.com>2013-11-05 23:53:23 -0500
commit4ac387f516bd3e5356cdb25266e244fa8a062281 (patch)
treef50c08aa8fdad6ff571711ba5b202ac11b5a58e3 /include/drm
parentf73aca50b7f6e0f3e04d887f852b9f8b0e108fa7 (diff)
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>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drmP.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index b3e4fa213000..62da57e914f8 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -1436,7 +1436,6 @@ extern struct drm_master *drm_master_get(struct drm_master *master);
1436extern void drm_master_put(struct drm_master **master); 1436extern void drm_master_put(struct drm_master **master);
1437 1437
1438extern void drm_put_dev(struct drm_device *dev); 1438extern void drm_put_dev(struct drm_device *dev);
1439extern int drm_put_minor(struct drm_minor **minor);
1440extern void drm_unplug_dev(struct drm_device *dev); 1439extern void drm_unplug_dev(struct drm_device *dev);
1441extern unsigned int drm_debug; 1440extern unsigned int drm_debug;
1442extern unsigned int drm_rnodes; 1441extern unsigned int drm_rnodes;