summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-05-30 11:25:41 +1000
committerDave Airlie <airlied@redhat.com>2008-05-30 11:25:41 +1000
commit98c5cf7f6fc51f1a8f5f90b3895009cd38dd8f22 (patch)
treed6c6d50e2e244d953e135cdc71dbd1aa066709e2 /shared-core
parentdf8cd54286fbae5903d8ede390ec4a11cb6c4b6c (diff)
modesetting: reorganise out crtc/outputs are allocated.
Use subclassing from the drivers to allocate the objects. This saves two objects being allocated for each crtc/output and generally makes exit paths cleaner.
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/i915_irq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-core/i915_irq.c b/shared-core/i915_irq.c
index ccedc70e..abf916ed 100644
--- a/shared-core/i915_irq.c
+++ b/shared-core/i915_irq.c
@@ -461,7 +461,7 @@ static void i915_hotplug_tv(struct drm_device *dev)
/* find the crt output */
list_for_each_entry(output, &dev->mode_config.output_list, head) {
- iout = output->driver_private;
+ iout = to_intel_output(output);
if (iout->type == INTEL_OUTPUT_TVOUT)
break;
else
@@ -488,7 +488,7 @@ static void i915_hotplug_crt(struct drm_device *dev, bool isconnected)
/* find the crt output */
list_for_each_entry(output, &dev->mode_config.output_list, head) {
- iout = output->driver_private;
+ iout = to_intel_output(output);
if (iout->type == INTEL_OUTPUT_ANALOG)
break;
else