aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-11-24 14:01:58 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-11-25 07:12:42 -0500
commitb0ff4b93f646c39900ead9f6f7b6da78b5978273 (patch)
treeffa51d4f379388e16dfc3a22ebfee085dbb1ec9c
parent955289c7cfad158dc939e150896a240f549ccc60 (diff)
drm: Document that drm_dev_alloc doesn't need a parent
Possible for purely virtual debug devices. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--drivers/gpu/drm/drm_drv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
index 2e5c7d941313..4f41377b0b80 100644
--- a/drivers/gpu/drm/drm_drv.c
+++ b/drivers/gpu/drm/drm_drv.c
@@ -535,6 +535,8 @@ static void drm_fs_inode_free(struct inode *inode)
535 * The initial ref-count of the object is 1. Use drm_dev_ref() and 535 * The initial ref-count of the object is 1. Use drm_dev_ref() and
536 * drm_dev_unref() to take and drop further ref-counts. 536 * drm_dev_unref() to take and drop further ref-counts.
537 * 537 *
538 * Note that for purely virtual devices @parent can be NULL.
539 *
538 * RETURNS: 540 * RETURNS:
539 * Pointer to new DRM device, or NULL if out of memory. 541 * Pointer to new DRM device, or NULL if out of memory.
540 */ 542 */