[PATCH] drm/ast: Remove superfluous drm_connector_unregister() call

Takashi Iwai tiwai at suse.de
Thu Jul 20 09:41:24 UTC 2017


At destroying the connector, we need no longer to call
drm_connector_unregister() explicitly, as drm_dev_unregister()
unregisters all connectors too.  Keeping it may cause a confusion by a
brainless copy-and-paste to other drivers, so let's rip it off now.

Suggested-by: Daniel Vetter <daniel at ffwll.ch>
Signed-off-by: Takashi Iwai <tiwai at suse.de>
---
 drivers/gpu/drm/ast/ast_mode.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c
index aaef0a652f10..d7bfe45b5884 100644
--- a/drivers/gpu/drm/ast/ast_mode.c
+++ b/drivers/gpu/drm/ast/ast_mode.c
@@ -857,7 +857,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);
 }
-- 
2.14.0.rc0.11.gf79966288497.dirty



More information about the dri-devel mailing list