Skip to content

Commit a99aff2

Browse files
JoseExpositodanvet
authored andcommitted
drm/connector: Document destroy hook in drmm init functions
Document that the drm_connector_funcs.destroy hook must be NULL in drmm_connector_init() and drmm_connector_hdmi_init(). Signed-off-by: José Expósito <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 21e97d3 commit a99aff2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/gpu/drm/drm_connector.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,8 @@ static void drm_connector_cleanup_action(struct drm_device *dev,
426426
*
427427
* The connector structure should be allocated with drmm_kzalloc().
428428
*
429+
* The @drm_connector_funcs.destroy hook must be NULL.
430+
*
429431
* Returns:
430432
* Zero on success, error code on failure.
431433
*/
@@ -474,6 +476,8 @@ EXPORT_SYMBOL(drmm_connector_init);
474476
*
475477
* The connector structure should be allocated with drmm_kzalloc().
476478
*
479+
* The @drm_connector_funcs.destroy hook must be NULL.
480+
*
477481
* Returns:
478482
* Zero on success, error code on failure.
479483
*/

0 commit comments

Comments
 (0)