drm/imx: dw_hdmi: Call drm_encoder_cleanup() in error path
authorDouglas Anderson <dianders@chromium.org>
Mon, 7 Mar 2016 22:00:51 +0000 (14:00 -0800)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 31 Mar 2016 09:24:26 +0000 (11:24 +0200)
commit788c8ddb4f67e7eb6dec9fa1d9189ff5e736a01b
tree7d3efc887259d09462187d643b95b0a79e7ef20d
parent6ac217eef5d46fe9e3d6f85ea2e303422615a18c
drm/imx: dw_hdmi: Call drm_encoder_cleanup() in error path

The drm_encoder_cleanup() was missing both from the error path of
dw_hdmi_imx_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>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/dw_hdmi-imx.c