[Intel-gfx] [PATCH 58/59] drm/ast: Drop explicit connector register/unregister
Thomas Zimmermann
tzimmermann at suse.de
Wed Apr 15 07:53:26 UTC 2020
Am 15.04.20 um 09:40 schrieb Daniel Vetter:
> This is only needed for hotpluggable connectors set up after
> drm_dev_register().
>
> Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
> Cc: Dave Airlie <airlied at redhat.com>
> Cc: Thomas Zimmermann <tzimmermann at suse.de>
> Cc: Gerd Hoffmann <kraxel at redhat.com>
> Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
> Cc: Sam Ravnborg <sam at ravnborg.org>
> Cc: Emil Velikov <emil.velikov at collabora.com>
Reviewed-by: Thomas Zimemrmann <tzimmermann at suse.de>
> ---
> drivers/gpu/drm/ast/ast_mode.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c
> index cdd6c46d6557..84b1d1fea41f 100644
> --- a/drivers/gpu/drm/ast/ast_mode.c
> +++ b/drivers/gpu/drm/ast/ast_mode.c
> @@ -1069,7 +1069,6 @@ static void ast_connector_destroy(struct drm_connector *connector)
> {
> struct ast_connector *ast_connector = to_ast_connector(connector);
> ast_i2c_destroy(ast_connector->i2c);
> - drm_connector_unregister(connector);
> drm_connector_cleanup(connector);
> kfree(connector);
> }
> @@ -1112,8 +1111,6 @@ static int ast_connector_init(struct drm_device *dev)
> connector->interlace_allowed = 0;
> connector->doublescan_allowed = 0;
>
> - drm_connector_register(connector);
> -
> connector->polled = DRM_CONNECTOR_POLL_CONNECT;
>
> encoder = list_first_entry(&dev->mode_config.encoder_list, struct drm_encoder, head);
>
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20200415/6087913a/attachment.sig>
More information about the Intel-gfx
mailing list