aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/gma500/mdfld_dsi_output.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/mdfld_dsi_output.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/mdfld_dsi_output.c')
-rw-r--r--drivers/gpu/drm/gma500/mdfld_dsi_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/gma500/mdfld_dsi_output.c b/drivers/gpu/drm/gma500/mdfld_dsi_output.c
index 6e91b20ce2e5..abf2248da61e 100644
--- a/drivers/gpu/drm/gma500/mdfld_dsi_output.c
+++ b/drivers/gpu/drm/gma500/mdfld_dsi_output.c
@@ -318,7 +318,7 @@ static void mdfld_dsi_connector_destroy(struct drm_connector *connector)
318 318
319 if (!dsi_connector) 319 if (!dsi_connector)
320 return; 320 return;
321 drm_sysfs_connector_remove(connector); 321 drm_connector_unregister(connector);
322 drm_connector_cleanup(connector); 322 drm_connector_cleanup(connector);
323 sender = dsi_connector->pkg_sender; 323 sender = dsi_connector->pkg_sender;
324 mdfld_dsi_pkg_sender_destroy(sender); 324 mdfld_dsi_pkg_sender_destroy(sender);
@@ -597,7 +597,7 @@ void mdfld_dsi_output_init(struct drm_device *dev,
597 dsi_config->encoder = encoder; 597 dsi_config->encoder = encoder;
598 encoder->base.type = (pipe == 0) ? INTEL_OUTPUT_MIPI : 598 encoder->base.type = (pipe == 0) ? INTEL_OUTPUT_MIPI :
599 INTEL_OUTPUT_MIPI2; 599 INTEL_OUTPUT_MIPI2;
600 drm_sysfs_connector_add(connector); 600 drm_connector_register(connector);
601 return; 601 return;
602 602
603 /*TODO: add code to destroy outputs on error*/ 603 /*TODO: add code to destroy outputs on error*/