aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/gma500/cdv_intel_hdmi.c
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2014-05-29 11:57:41 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-06-19 02:55:28 -0400
commit34ea3d386347cd6de4c2fa2491dd85c9e753e7e4 (patch)
tree8f8f3af34e12d01b95ad15b7f0d065fe17cbd504 /drivers/gpu/drm/gma500/cdv_intel_hdmi.c
parentc3e25ae34fab3557b17a585446b5576e49d2f203 (diff)
drm: add register and unregister functions for connectors
Introduce generic functions to register and unregister connectors. This provides a common place to add and remove associated user space interfaces. Signed-off-by: Thomas Wood <thomas.wood@intel.com> Reviewed-by: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/gma500/cdv_intel_hdmi.c')
-rw-r--r--drivers/gpu/drm/gma500/cdv_intel_hdmi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/gma500/cdv_intel_hdmi.c b/drivers/gpu/drm/gma500/cdv_intel_hdmi.c
index b99084b3f706..4268bf210034 100644
--- a/drivers/gpu/drm/gma500/cdv_intel_hdmi.c
+++ b/drivers/gpu/drm/gma500/cdv_intel_hdmi.c
@@ -248,7 +248,7 @@ static void cdv_hdmi_destroy(struct drm_connector *connector)
248 248
249 if (gma_encoder->i2c_bus) 249 if (gma_encoder->i2c_bus)
250 psb_intel_i2c_destroy(gma_encoder->i2c_bus); 250 psb_intel_i2c_destroy(gma_encoder->i2c_bus);
251 drm_sysfs_connector_remove(connector); 251 drm_connector_unregister(connector);
252 drm_connector_cleanup(connector); 252 drm_connector_cleanup(connector);
253 kfree(connector); 253 kfree(connector);
254} 254}
@@ -356,7 +356,7 @@ void cdv_hdmi_init(struct drm_device *dev,
356 356
357 hdmi_priv->hdmi_i2c_adapter = &(gma_encoder->i2c_bus->adapter); 357 hdmi_priv->hdmi_i2c_adapter = &(gma_encoder->i2c_bus->adapter);
358 hdmi_priv->dev = dev; 358 hdmi_priv->dev = dev;
359 drm_sysfs_connector_add(connector); 359 drm_connector_register(connector);
360 return; 360 return;
361 361
362failed_ddc: 362failed_ddc: