drm/rockchip: dw_hdmi: Call drm_encoder_cleanup() in error path
authorDouglas Anderson <dianders@chromium.org>
Mon, 7 Mar 2016 22:00:50 +0000 (14:00 -0800)
committerMark Yao <mark.yao@rock-chips.com>
Mon, 28 Mar 2016 06:48:31 +0000 (14:48 +0800)
commit948cf42700b15fc65ec4cc3ac52a8bbeb84b87ef
treec65784b0eebe5cd03d764392db01c6b28fc9bc6c
parent3ed6c64911f2335b271c21363b7834072fc03303
drm/rockchip: dw_hdmi: Call drm_encoder_cleanup() in error path

The drm_encoder_cleanup() was missing both from the error path of
dw_hdmi_rockchip_bind().  This caused a crash when slub_debug was
enabled and we ended up deferring probe of HDMI at boot.

This call isn't needed from unbind() because if dw_hdmi_bind() returns
no error then it takes over the job of freeing the encoder (in
dw_hdmi_unbind).

Signed-off-by: Douglas Anderson <dianders@chromium.org>
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c