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/nouveau/nouveau_connector.c | |
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/nouveau/nouveau_connector.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_connector.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c b/drivers/gpu/drm/nouveau/nouveau_connector.c index 1fa222e8f007..680f46d007a0 100644 --- a/drivers/gpu/drm/nouveau/nouveau_connector.c +++ b/drivers/gpu/drm/nouveau/nouveau_connector.c | |||
@@ -104,7 +104,7 @@ nouveau_connector_destroy(struct drm_connector *connector) | |||
104 | struct nouveau_connector *nv_connector = nouveau_connector(connector); | 104 | struct nouveau_connector *nv_connector = nouveau_connector(connector); |
105 | nouveau_event_ref(NULL, &nv_connector->hpd); | 105 | nouveau_event_ref(NULL, &nv_connector->hpd); |
106 | kfree(nv_connector->edid); | 106 | kfree(nv_connector->edid); |
107 | drm_sysfs_connector_remove(connector); | 107 | drm_connector_unregister(connector); |
108 | drm_connector_cleanup(connector); | 108 | drm_connector_cleanup(connector); |
109 | if (nv_connector->aux.transfer) | 109 | if (nv_connector->aux.transfer) |
110 | drm_dp_aux_unregister(&nv_connector->aux); | 110 | drm_dp_aux_unregister(&nv_connector->aux); |
@@ -1236,6 +1236,6 @@ nouveau_connector_create(struct drm_device *dev, int index) | |||
1236 | 1236 | ||
1237 | INIT_WORK(&nv_connector->work, nouveau_connector_hotplug_work); | 1237 | INIT_WORK(&nv_connector->work, nouveau_connector_hotplug_work); |
1238 | 1238 | ||
1239 | drm_sysfs_connector_add(connector); | 1239 | drm_connector_register(connector); |
1240 | return connector; | 1240 | return connector; |
1241 | } | 1241 | } |