Skip to contentSkip to conversation

drm/ast: Remove superfluous drm_connector_unregister() call

PATCH New Takashi Iwai 1 participant 1 message Jul 20, 2017

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

PATCH 1/1 drm/ast: Remove superfluous drm_connector_unregister() call

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.

---
 drivers/gpu/drm/ast/ast_mode.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/ast/ast_mode.c +0 -1
index aaef0a652f10..d7bfe45b5884 100644
@@ -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);
 }
Signature · 6 lines
2.14.0.rc0.11.gf79966288497.dirty

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