Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f67ed574 authored by Sean Paul's avatar Sean Paul
Browse files

Revert "drm/i2c: tda998x: don't register the connector"



This reverts commit 6a2925ea.

commit 6a2925ea
Author: Brian Starkey <brian.starkey@arm.com>
Date:   Mon Jul 25 11:55:48 2016 +0100

    drm/i2c: tda998x: don't register the connector

[seanpaul]
Patch isn't fully baked, and still causing problems. Revert
until this is sorted.

Acked-by: default avatarDaniel Vetter <daniel@ffwll.ch>
Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
parent 226714dc
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -1584,6 +1584,7 @@ const struct drm_connector_helper_funcs tda998x_connector_helper_funcs = {


static void tda998x_connector_destroy(struct drm_connector *connector)
static void tda998x_connector_destroy(struct drm_connector *connector)
{
{
	drm_connector_unregister(connector);
	drm_connector_cleanup(connector);
	drm_connector_cleanup(connector);
}
}


@@ -1655,10 +1656,16 @@ static int tda998x_bind(struct device *dev, struct device *master, void *data)
	if (ret)
	if (ret)
		goto err_connector;
		goto err_connector;


	ret = drm_connector_register(&priv->connector);
	if (ret)
		goto err_sysfs;

	drm_mode_connector_attach_encoder(&priv->connector, &priv->encoder);
	drm_mode_connector_attach_encoder(&priv->connector, &priv->encoder);


	return 0;
	return 0;


err_sysfs:
	drm_connector_cleanup(&priv->connector);
err_connector:
err_connector:
	drm_encoder_cleanup(&priv->encoder);
	drm_encoder_cleanup(&priv->encoder);
err_encoder:
err_encoder:
@@ -1671,6 +1678,7 @@ static void tda998x_unbind(struct device *dev, struct device *master,
{
{
	struct tda998x_priv *priv = dev_get_drvdata(dev);
	struct tda998x_priv *priv = dev_get_drvdata(dev);


	drm_connector_unregister(&priv->connector);
	drm_connector_cleanup(&priv->connector);
	drm_connector_cleanup(&priv->connector);
	drm_encoder_cleanup(&priv->encoder);
	drm_encoder_cleanup(&priv->encoder);
	tda998x_destroy(priv);
	tda998x_destroy(priv);