drm/i915: add missing unregister_oom_notifier to the error/unload path
authorImre Deak <imre.deak@intel.com>
Tue, 20 May 2014 16:47:20 +0000 (19:47 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 20 May 2014 17:33:31 +0000 (19:33 +0200)
commit4bdc72930743b35f23b6c80426a2c9f6dda5e9b6
tree554b21b8a228407f070f79eb45a0d523878bc339
parent646b4269e4d0513b4c210cdd47384e8607f539fe
drm/i915: add missing unregister_oom_notifier to the error/unload path

I'm trying to reduce the WARNs during driver reload and this was one of
them. Also while at it remove the redundant condition from before
unregister_shrinker().

v2:
- fix the error path too and move the unregister to its logical place
(Chris)
- remove redundant condition from before unregister_shrinker()

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c