From: Sachin Kamat Date: Tue, 17 Jun 2014 11:38:07 +0000 (+0530) Subject: drm/exynos: Fix de-registration ordering X-Git-Tag: omap-for-v3.16/fixes-rc4~48^2~1^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0013fc9e550a0f9d2c4a19e553292680b6fdb283;p=pandora-kernel.git drm/exynos: Fix de-registration ordering 'exynos_drm_pdev' was not getting unregistered if platform_driver_register() failed. Fix the ordering to allow this. This also fixes the below warning by moving the #endif macro. While at it also fix the ordering in the exit function so that de-registration happens in opposite order of registration. drivers/gpu/drm/exynos/exynos_drm_drv.c:768:1: warning: label 'err_unregister_pd' defined but not used [-Wunused-label] Signed-off-by: Sachin Kamat Signed-off-by: Inki Dae --- Reading git-diff-tree failed