diff options
Diffstat (limited to 'drivers/gpu/drm/drm_crtc.c')
-rw-r--r-- | drivers/gpu/drm/drm_crtc.c | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index fe94cc10cd35..c50c827cefb6 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c | |||
@@ -921,6 +921,34 @@ void drm_connector_cleanup(struct drm_connector *connector) | |||
921 | EXPORT_SYMBOL(drm_connector_cleanup); | 921 | EXPORT_SYMBOL(drm_connector_cleanup); |
922 | 922 | ||
923 | /** | 923 | /** |
924 | * drm_connector_register - register a connector | ||
925 | * @connector: the connector to register | ||
926 | * | ||
927 | * Register userspace interfaces for a connector | ||
928 | * | ||
929 | * Returns: | ||
930 | * Zero on success, error code on failure. | ||
931 | */ | ||
932 | int drm_connector_register(struct drm_connector *connector) | ||
933 | { | ||
934 | return drm_sysfs_connector_add(connector); | ||
935 | } | ||
936 | EXPORT_SYMBOL(drm_connector_register); | ||
937 | |||
938 | /** | ||
939 | * drm_connector_unregister - unregister a connector | ||
940 | * @connector: the connector to unregister | ||
941 | * | ||
942 | * Unregister userspace interfaces for a connector | ||
943 | */ | ||
944 | void drm_connector_unregister(struct drm_connector *connector) | ||
945 | { | ||
946 | drm_sysfs_connector_remove(connector); | ||
947 | } | ||
948 | EXPORT_SYMBOL(drm_connector_unregister); | ||
949 | |||
950 | |||
951 | /** | ||
924 | * drm_connector_unplug_all - unregister connector userspace interfaces | 952 | * drm_connector_unplug_all - unregister connector userspace interfaces |
925 | * @dev: drm device | 953 | * @dev: drm device |
926 | * | 954 | * |
@@ -934,7 +962,7 @@ void drm_connector_unplug_all(struct drm_device *dev) | |||
934 | 962 | ||
935 | /* taking the mode config mutex ends up in a clash with sysfs */ | 963 | /* taking the mode config mutex ends up in a clash with sysfs */ |
936 | list_for_each_entry(connector, &dev->mode_config.connector_list, head) | 964 | list_for_each_entry(connector, &dev->mode_config.connector_list, head) |
937 | drm_sysfs_connector_remove(connector); | 965 | drm_connector_unregister(connector); |
938 | 966 | ||
939 | } | 967 | } |
940 | EXPORT_SYMBOL(drm_connector_unplug_all); | 968 | EXPORT_SYMBOL(drm_connector_unplug_all); |