aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiviu Dudau (ARM) <Liviu.Dudau@arm.com>2015-11-23 10:52:40 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2015-12-03 10:48:16 -0500
commitdebd15ced9937f1581096f36374c62b463e7df74 (patch)
treef9057b0cb2c78d75f7b8f6b8645ae66b00a9ffb8
parent9525c4dd923f8ffe38818f86cee523a5f7b19617 (diff)
drm/i2c: tda998x: unregister the connector in the unbind function
tda998x uses drm_connector_register() in the .bind function that needs to be balanced with a drm_connector_unregister() in the .unbind. Otherwise dangling sysfs entries are left behind and future rebinds will fail. Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--drivers/gpu/drm/i2c/tda998x_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c
index 896b6aaf8c4d..cdbd83b95770 100644
--- a/drivers/gpu/drm/i2c/tda998x_drv.c
+++ b/drivers/gpu/drm/i2c/tda998x_drv.c
@@ -1472,6 +1472,7 @@ static void tda998x_unbind(struct device *dev, struct device *master,
1472{ 1472{
1473 struct tda998x_priv *priv = dev_get_drvdata(dev); 1473 struct tda998x_priv *priv = dev_get_drvdata(dev);
1474 1474
1475 drm_connector_unregister(&priv->connector);
1475 drm_connector_cleanup(&priv->connector); 1476 drm_connector_cleanup(&priv->connector);
1476 drm_encoder_cleanup(&priv->encoder); 1477 drm_encoder_cleanup(&priv->encoder);
1477 tda998x_destroy(priv); 1478 tda998x_destroy(priv);