aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/gma500/psb_intel_sdvo.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/psb_intel_sdvo.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/psb_intel_sdvo.c')
-rw-r--r--drivers/gpu/drm/gma500/psb_intel_sdvo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/gma500/psb_intel_sdvo.c b/drivers/gpu/drm/gma500/psb_intel_sdvo.c
index deeb0829b129..0be96fdb5e28 100644
--- a/drivers/gpu/drm/gma500/psb_intel_sdvo.c
+++ b/drivers/gpu/drm/gma500/psb_intel_sdvo.c
@@ -1682,7 +1682,7 @@ static void psb_intel_sdvo_destroy(struct drm_connector *connector)
1682 psb_intel_sdvo_connector->tv_format); 1682 psb_intel_sdvo_connector->tv_format);
1683 1683
1684 psb_intel_sdvo_destroy_enhance_property(connector); 1684 psb_intel_sdvo_destroy_enhance_property(connector);
1685 drm_sysfs_connector_remove(connector); 1685 drm_connector_unregister(connector);
1686 drm_connector_cleanup(connector); 1686 drm_connector_cleanup(connector);
1687 kfree(connector); 1687 kfree(connector);
1688} 1688}
@@ -2071,7 +2071,7 @@ psb_intel_sdvo_connector_init(struct psb_intel_sdvo_connector *connector,
2071 connector->base.base.display_info.subpixel_order = SubPixelHorizontalRGB; 2071 connector->base.base.display_info.subpixel_order = SubPixelHorizontalRGB;
2072 2072
2073 gma_connector_attach_encoder(&connector->base, &encoder->base); 2073 gma_connector_attach_encoder(&connector->base, &encoder->base);
2074 drm_sysfs_connector_add(&connector->base.base); 2074 drm_connector_register(&connector->base.base);
2075} 2075}
2076 2076
2077static void 2077static void