From: José Expósito Date: Sun, 4 Aug 2024 17:05:52 +0000 (+0200) Subject: drm/connector: Document destroy hook in drmm init functions X-Git-Tag: v6.12-rc1~126^2~23^2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a99aff2608f422da833cd91fa1eff23daa05c0bd;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/20240804170551.33971-2-jose.exposito89@gmail.com --- diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c index b4f4d2f908d15..80e239a64938c 100644 --- a/drivers/gpu/drm/drm_connector.c +++ b/drivers/gpu/drm/drm_connector.c @@ -426,6 +426,8 @@ static void drm_connector_cleanup_action(struct drm_device *dev, * * The connector structure should be allocated with drmm_kzalloc(). * + * The @drm_connector_funcs.destroy hook must be NULL. + * * Returns: * Zero on success, error code on failure. */ @@ -474,6 +476,8 @@ EXPORT_SYMBOL(drmm_connector_init); * * The connector structure should be allocated with drmm_kzalloc(). * + * The @drm_connector_funcs.destroy hook must be NULL. + * * Returns: * Zero on success, error code on failure. */