]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit05b13755d1bdea346913523adced1952de58f721
tree784cf54239daa66b4026e48c658dae9ad09f7c20
parent560c0498bf8bcc35dd92cc837c07ad526cc9dca8
drm/fsl-dcu: use drm_mode_config_cleanup on initialization errors

Commit 28476dc82f9a ("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