diff options
author | Zhenyu Wang <zhenyuw@linux.intel.com> | 2010-03-30 02:39:26 -0400 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-04-09 17:16:35 -0400 |
commit | 5bf4c9c469ffc64b85fed1f3d2b0c8b19909ed13 (patch) | |
tree | a0ab2c6760cfabf8c7847d4187a522234ff20a0d /drivers/gpu/drm/i915/i915_irq.c | |
parent | 903cf20c997053024b6ed72a746b429671fa8e8c (diff) |
drm/i915: use encoder_list for hotplug callback
Instead of walking through drm connector_list uses encoder_list
for calling hotplug functions which is consistent with intel display
hotplug reporting.
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_irq.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_irq.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index 5b53adfad40a..c0ebcea2a375 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/gpu/drm/i915/i915_irq.c | |||
@@ -255,11 +255,11 @@ static void i915_hotplug_work_func(struct work_struct *work) | |||
255 | hotplug_work); | 255 | hotplug_work); |
256 | struct drm_device *dev = dev_priv->dev; | 256 | struct drm_device *dev = dev_priv->dev; |
257 | struct drm_mode_config *mode_config = &dev->mode_config; | 257 | struct drm_mode_config *mode_config = &dev->mode_config; |
258 | struct drm_connector *connector; | 258 | struct drm_encoder *encoder; |
259 | 259 | ||
260 | if (mode_config->num_connector) { | 260 | if (mode_config->num_encoder) { |
261 | list_for_each_entry(connector, &mode_config->connector_list, head) { | 261 | list_for_each_entry(encoder, &mode_config->encoder_list, head) { |
262 | struct intel_encoder *intel_encoder = to_intel_encoder(connector); | 262 | struct intel_encoder *intel_encoder = enc_to_intel_encoder(encoder); |
263 | 263 | ||
264 | if (intel_encoder->hot_plug) | 264 | if (intel_encoder->hot_plug) |
265 | (*intel_encoder->hot_plug) (intel_encoder); | 265 | (*intel_encoder->hot_plug) (intel_encoder); |