drm/rockchip: dw-mipi-dsi: Fix connector and encoder cleanup.
authorJeffy Chen <jeffy.chen@rock-chips.com>
Fri, 2 Mar 2018 17:57:53 +0000 (18:57 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 8 Mar 2018 16:32:52 +0000 (17:32 +0100)
commite45df2643832867c929f9c77fb17a21e12907b5c
tree9bf7edf2ceb8388edd73b7d0c0a5eda8417654c0
parent9aecbc45a3ceefe57f27ddc232e26e08513c9137
drm/rockchip: dw-mipi-dsi: Fix connector and encoder cleanup.

In bind()'s error handling path call destroy functions instead of
cleanup functions for encoder and connector and reorder to match how is
called in bind().

In unbind() call the connector and encoder destroy functions.

Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20180302175757.28192-2-enric.balletbo@collabora.com
drivers/gpu/drm/rockchip/dw-mipi-dsi.c