drm/fsl-dcu: use drm_mode_config_cleanup on initialization errors
authorStefan Agner <stefan@agner.ch>
Sun, 19 Jun 2016 02:15:43 +0000 (19:15 -0700)
committerThierry Reding <treding@nvidia.com>
Tue, 21 Jun 2016 13:37:26 +0000 (15:37 +0200)
commitb7868c68a540b32ffa5354bf3256124edafe2f40
tree784cf54239daa66b4026e48c658dae9ad09f7c20
parente06a44c127d99ee7ee3dae1665db6c32d55b716e
drm/fsl-dcu: use drm_mode_config_cleanup on initialization errors

Commit 7566e247672d ("drm/fsl-dcu: handle initialization errors properly")
introduced error handling during initialization, but with a wrong cleanup
order.

Replace the error handling with the generic cleanup function
drm_mode_config_cleanup.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160619021543.23587-1-stefan@agner.ch
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_kms.c