drm/komeda: Reordered the komeda's de-init functions
authorAyan Kumar Halder <Ayan.Halder@arm.com>
Wed, 28 Aug 2019 15:00:19 +0000 (15:00 +0000)
committerAyan kumar halder <ayan.halder@arm.com>
Wed, 28 Aug 2019 16:55:40 +0000 (17:55 +0100)
commit6978bce054247e4cfccdf689ce263e076499f905
tree19facc74aac2a435c4e730f1de9374d454d8fcbf
parent51a44a28eefd0d4c1addeb23fc5a599ff1787dfd
drm/komeda: Reordered the komeda's de-init functions

The de-init routine should be doing the following in order:-
1. Unregister the drm device
2. Shut down the crtcs - failing to do this might cause a connector leakage
See the 'commit 109c4d18e574 ("drm/arm/malidp: Ensure that the crtcs are
shutdown before removing any encoder/connector")'
3. Disable the interrupts
4. Unbind the components
5. Free up DRM mode_config info

Changes from v1:-
1. Re-ordered the header files inclusion
2. Rebased on top of the latest drm-misc-fixes

Signed-off-by:. Ayan Kumar Halder <Ayan.Halder@arm.com>
Reviewed-by: Mihail Atanassov <mihail.atanassov@arm.com>
Reviewed-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com>
Link: https://patchwork.freedesktop.org/patch/327606/
drivers/gpu/drm/arm/display/komeda/komeda_kms.c