diff options
author | Dave Airlie <airlied@redhat.com> | 2008-05-30 11:25:41 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-05-30 11:25:41 +1000 |
commit | 98c5cf7f6fc51f1a8f5f90b3895009cd38dd8f22 (patch) | |
tree | d6c6d50e2e244d953e135cdc71dbd1aa066709e2 /shared-core | |
parent | df8cd54286fbae5903d8ede390ec4a11cb6c4b6c (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.c | 4 |
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 |