Skip to contentSkip to conversation

drm: Document that drm_dev_alloc doesn't need a parent

PATCH New Daniel Vetter 1 participant 1 message Nov 24, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: Document that drm_dev_alloc doesn't need a parent

Possible for purely virtual debug devices.

---
 drivers/gpu/drm/drm_drv.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/drm_drv.c +2 -0
index 2e5c7d941313..4f41377b0b80 100644
@@ -535,6 +535,8 @@ static void drm_fs_inode_free(struct inode *inode)
  * The initial ref-count of the object is 1. Use drm_dev_ref() and
  * drm_dev_unref() to take and drop further ref-counts.
  *
+ * Note that for purely virtual devices @parent can be NULL.
+ *
  * RETURNS:
  * Pointer to new DRM device, or NULL if out of memory.
  */
Signature · 6 lines
2.1.1

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel