diff options
author | Dave Airlie <airlied@redhat.com> | 2014-07-07 21:04:35 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-07-07 21:04:35 -0400 |
commit | afa95e7403298110943bc2dc0ab25f8b42b6334c (patch) | |
tree | b6ecacf111378b498099d025702dd81f3174a2ab /drivers/gpu/drm/i915/intel_sdvo.c | |
parent | 4b7ba8697bc519abd4f79057f65a8a8e7107ac37 (diff) | |
parent | 2a8c6edfd2a888085ae0ddaf6c3ea3f529fdc4e8 (diff) |
Merge tag 'topic/core-stuff-2014-06-30' of git://anongit.freedesktop.org/drm-intel into drm-next
misc core patches picked up by Daniel and Jani.
* tag 'topic/core-stuff-2014-06-30' of git://anongit.freedesktop.org/drm-intel:
drm/fb-helper: Remove unnecessary list empty check in drm_fb_helper_debug_enter()
drm/fb-helper: Redundant info->fix.type_aux setting in drm_fb_helper_fill_fix()
drm/debugfs: add an "edid_override" file per connector
drm/debugfs: add a "force" file per connector
drm: add register and unregister functions for connectors
drm: fix uninitialized acquire_ctx fields (v2)
drm: Driver-specific ioctls range from 0x40 to 0x9f
drm: Don't export internal module variables
Diffstat (limited to 'drivers/gpu/drm/i915/intel_sdvo.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_sdvo.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c index 20375cc7f82d..9350edd6728d 100644 --- a/drivers/gpu/drm/i915/intel_sdvo.c +++ b/drivers/gpu/drm/i915/intel_sdvo.c | |||
@@ -2433,7 +2433,7 @@ intel_sdvo_connector_init(struct intel_sdvo_connector *connector, | |||
2433 | connector->base.unregister = intel_sdvo_connector_unregister; | 2433 | connector->base.unregister = intel_sdvo_connector_unregister; |
2434 | 2434 | ||
2435 | intel_connector_attach_encoder(&connector->base, &encoder->base); | 2435 | intel_connector_attach_encoder(&connector->base, &encoder->base); |
2436 | ret = drm_sysfs_connector_add(drm_connector); | 2436 | ret = drm_connector_register(drm_connector); |
2437 | if (ret < 0) | 2437 | if (ret < 0) |
2438 | goto err1; | 2438 | goto err1; |
2439 | 2439 | ||
@@ -2446,7 +2446,7 @@ intel_sdvo_connector_init(struct intel_sdvo_connector *connector, | |||
2446 | return 0; | 2446 | return 0; |
2447 | 2447 | ||
2448 | err2: | 2448 | err2: |
2449 | drm_sysfs_connector_remove(drm_connector); | 2449 | drm_connector_unregister(drm_connector); |
2450 | err1: | 2450 | err1: |
2451 | drm_connector_cleanup(drm_connector); | 2451 | drm_connector_cleanup(drm_connector); |
2452 | 2452 | ||
@@ -2559,7 +2559,7 @@ intel_sdvo_tv_init(struct intel_sdvo *intel_sdvo, int type) | |||
2559 | return true; | 2559 | return true; |
2560 | 2560 | ||
2561 | err: | 2561 | err: |
2562 | drm_sysfs_connector_remove(connector); | 2562 | drm_connector_unregister(connector); |
2563 | intel_sdvo_destroy(connector); | 2563 | intel_sdvo_destroy(connector); |
2564 | return false; | 2564 | return false; |
2565 | } | 2565 | } |
@@ -2638,7 +2638,7 @@ intel_sdvo_lvds_init(struct intel_sdvo *intel_sdvo, int device) | |||
2638 | return true; | 2638 | return true; |
2639 | 2639 | ||
2640 | err: | 2640 | err: |
2641 | drm_sysfs_connector_remove(connector); | 2641 | drm_connector_unregister(connector); |
2642 | intel_sdvo_destroy(connector); | 2642 | intel_sdvo_destroy(connector); |
2643 | return false; | 2643 | return false; |
2644 | } | 2644 | } |
@@ -2711,7 +2711,7 @@ static void intel_sdvo_output_cleanup(struct intel_sdvo *intel_sdvo) | |||
2711 | list_for_each_entry_safe(connector, tmp, | 2711 | list_for_each_entry_safe(connector, tmp, |
2712 | &dev->mode_config.connector_list, head) { | 2712 | &dev->mode_config.connector_list, head) { |
2713 | if (intel_attached_encoder(connector) == &intel_sdvo->base) { | 2713 | if (intel_attached_encoder(connector) == &intel_sdvo->base) { |
2714 | drm_sysfs_connector_remove(connector); | 2714 | drm_connector_unregister(connector); |
2715 | intel_sdvo_destroy(connector); | 2715 | intel_sdvo_destroy(connector); |
2716 | } | 2716 | } |
2717 | } | 2717 | } |