drm/i915: initialize the context idr unconditionally
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 19 Jun 2012 14:52:30 +0000 (16:52 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 20 Jun 2012 09:15:37 +0000 (11:15 +0200)
commitdf12c6d5ec9b88fc45c672b77dac015327dd8497
treeaf9c859549840b8c5fc8b8f9e9a2ca991040212e
parent55a6662837a5efe48c836bfc3570ace348f3db09
drm/i915: initialize the context idr unconditionally

It doesn't hurt and it at least prevents us from OOPSing left and
right at quite a few places. This also allows us to simplify the code
a bit by folding the only line of context_open into the callsite.

We obviuosly also need to run the cleanup code unconditionally, too.

Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_context.c