[PATCH V2 RESEND] drm/i915: gracefully bail out when init_clock_gating-pointer is not set

Chris Wilson chris at chris-wilson.co.uk
Mon Jul 4 02:50:51 PDT 2011


On Mon,  4 Jul 2011 11:41:10 +0200, Wolfram Sang <w.sang at pengutronix.de> wrote:
> Commit 6067aa (drm/i915: split clock gating init into per-chipset
> functions) introduces an init_clock_gating-pointer. There is one case,
> however, where it does not get set, so that caused an OOPS. Change the
> code to return -ENODEV in this case and propagate it to the upper
> layers.
> 
> Signed-off-by: Wolfram Sang <w.sang at pengutronix.de>
> Reviewed-by: Jesse Barnes <jbarnes at virtuousgeek.org>
> Cc: Keith Packard <keithp at keithp.com>

Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the dri-devel mailing list