drm/rockchip: Reorder drm bind/unbind sequence
authorJeffy Chen <jeffy.chen@rock-chips.com>
Thu, 6 Apr 2017 12:31:23 +0000 (20:31 +0800)
committerSean Paul <seanpaul@chromium.org>
Fri, 7 Apr 2017 17:28:32 +0000 (13:28 -0400)
commitccea91998c8f140bc3e324bbb3c3fb7148e72d31
tree40555d1847f41a5d670260202eac6352233a3f53
parentb7ac7b5b6bb46ed0afbcf94b0834d60e557da779
drm/rockchip: Reorder drm bind/unbind sequence

Current drm bind/unbind sequence would cause some memory issues.
For example we should not cleanup iommu before cleanup mode config.

Reorder bind/unbind sequence, follow exynos drm.

Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
[seanpaul fixed spelling typo in commit subject]
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1491481885-13775-11-git-send-email-jeffy.chen@rock-chips.com
drivers/gpu/drm/rockchip/rockchip_drm_drv.c