Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329442
b: refs/heads/master
c: ba1c28c
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Vetter committed Sep 6, 2012
1 parent cc4e415 commit 2b7f42e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 94352cf9a5328bb1a44288e6c2c1276695f8a356
refs/heads/master: ba1c28c900f1aeb9a353f230a99c68cd4e550dde
25 changes: 0 additions & 25 deletions trunk/drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -6585,30 +6585,6 @@ static bool intel_encoder_crtc_ok(struct drm_encoder *encoder,
return false;
}

static int
intel_crtc_helper_disable(struct drm_crtc *crtc)
{
struct drm_device *dev = crtc->dev;
struct drm_connector *connector;
struct drm_encoder *encoder;

/* Decouple all encoders and their attached connectors from this crtc */
list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) {
if (encoder->crtc != crtc)
continue;

list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
if (connector->encoder != encoder)
continue;

connector->encoder = NULL;
}
}

drm_helper_disable_unused_functions(dev);
return 0;
}

static void
intel_crtc_prepare_encoders(struct drm_device *dev)
{
Expand Down Expand Up @@ -6996,7 +6972,6 @@ static int intel_crtc_set_config(struct drm_mode_set *set)
(int)set->num_connectors, set->x, set->y);
} else {
DRM_DEBUG_KMS("[CRTC:%d] [NOFB]\n", set->crtc->base.id);
return intel_crtc_helper_disable(set->crtc);
}

dev = set->crtc->dev;
Expand Down

0 comments on commit 2b7f42e

Please sign in to comment.