drm/rockchip: Reorder drm bind/unbind sequence
authorJeffy Chen <[email protected]>
Thu, 6 Apr 2017 12:31:23 +0000 (20:31 +0800)
committerSean Paul <[email protected]>
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 <[email protected]>
[seanpaul fixed spelling typo in commit subject]
Signed-off-by: Sean Paul <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/rockchip/rockchip_drm_drv.c