diff options
author | Thomas Wood <thomas.wood@intel.com> | 2014-05-29 11:57:41 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-06-19 02:55:28 -0400 |
commit | 34ea3d386347cd6de4c2fa2491dd85c9e753e7e4 (patch) | |
tree | 8f8f3af34e12d01b95ad15b7f0d065fe17cbd504 /drivers/gpu/drm/qxl | |
parent | c3e25ae34fab3557b17a585446b5576e49d2f203 (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/qxl')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_display.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index 5d7ea2461852..b8ced08b6291 100644 --- a/drivers/gpu/drm/qxl/qxl_display.c +++ b/drivers/gpu/drm/qxl/qxl_display.c | |||
@@ -835,7 +835,7 @@ static void qxl_conn_destroy(struct drm_connector *connector) | |||
835 | struct qxl_output *qxl_output = | 835 | struct qxl_output *qxl_output = |
836 | drm_connector_to_qxl_output(connector); | 836 | drm_connector_to_qxl_output(connector); |
837 | 837 | ||
838 | drm_sysfs_connector_remove(connector); | 838 | drm_connector_unregister(connector); |
839 | drm_connector_cleanup(connector); | 839 | drm_connector_cleanup(connector); |
840 | kfree(qxl_output); | 840 | kfree(qxl_output); |
841 | } | 841 | } |
@@ -902,7 +902,7 @@ static int qdev_output_init(struct drm_device *dev, int num_output) | |||
902 | 902 | ||
903 | drm_object_attach_property(&connector->base, | 903 | drm_object_attach_property(&connector->base, |
904 | qdev->hotplug_mode_update_property, 0); | 904 | qdev->hotplug_mode_update_property, 0); |
905 | drm_sysfs_connector_add(connector); | 905 | drm_connector_register(connector); |
906 | return 0; | 906 | return 0; |
907 | } | 907 | } |
908 | 908 | ||