drm/i915: handle failure path correctly for lvds
authorShaohua Li <shaohua.li@intel.com>
Tue, 17 Nov 2009 09:19:23 +0000 (17:19 +0800)
committerEric Anholt <eric@anholt.net>
Wed, 25 Nov 2009 21:45:55 +0000 (13:45 -0800)
commit1991bdfaf5897b6fbfdc7dce81508f7cbc044768
tree51a34d8cd4d722ebb392e33a8941af08144ed1f5
parent1b3c7a47f993bf9ab6c4c7cc3bbf5588052b58f4
drm/i915: handle failure path correctly for lvds

In failure path, make sure encoder is cleaned up, otherwise there
is a kernel oops.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_lvds.c