[Intel-gfx] [PATCH] drm/i915: don't use i915_driver_unload() to cleanup failed vblank init

2010-11-16 Thread Jeremy Kerr
Currently, i915_driver_load calls i915_driver_unload if drm_vblank_init fails. However, we have not yet fully initialised drm_i915_private (eg. ->hangcheck_timer), so we're calling unload from an inconsistent state. This change uses the existing error path to do the cleanup instead, as is used bef

[Intel-gfx] [PATCH] Encorage dead-code elimination for unused interpolation channels

2010-11-16 Thread Peter Clifton
After some discussion with Eric on IRC, this is what I came up with (which appears to work!) -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue, Cambridge CB3 0FA Tel: +44 (0)7729 980173 - (No signal in the lab!) Tel: +44 (0)