drm/exynos: remove ifdeferry from initialization code
authorAndrzej Hajda <a.hajda@samsung.com>
Thu, 13 Nov 2014 07:37:57 +0000 (16:37 +0900)
committerInki Dae <inki.dae@samsung.com>
Mon, 24 Nov 2014 09:02:49 +0000 (18:02 +0900)
commit7239067795dc03be5b152034558bed0bb9c73ab3
tree57b0bf3baf78eb5c782a24d00a6a94849f048a92
parent421ee18d4e040d673f5ce2972efa75c2ce0826d9
drm/exynos: remove ifdeferry from initialization code

The patch replaces separate calls to driver (de)registration by
loops over the array of drivers. As a result it significantly
decreases number of ifdefs. Additionally it moves device registration
related ifdefs to header file.

Changelog v2:
- Rebased.
- Consider non kms driver in respect to infinite loop issue.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_drv.c
drivers/gpu/drm/exynos/exynos_drm_drv.h