]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: Fix de-registration ordering
authorSachin Kamat <sachin.kamat@samsung.com>
Tue, 17 Jun 2014 11:38:07 +0000 (17:08 +0530)
committerInki Dae <inki.dae@samsung.com>
Tue, 24 Jun 2014 02:11:54 +0000 (11:11 +0900)
commit9e8f8b1a216ea0cc75dfc5452833733d9a0ac28a
tree887f15fe6cf93fad2e7ae342d488594a79cf15fb
parenta6331d4b31fe2a92214651238b02f7c36b7d4fd0
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 <sachin.kamat@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_drv.c