]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit292460a54c9b399d6b5b12c7d1f59459eabc0abe
tree57b0bf3baf78eb5c782a24d00a6a94849f048a92
parent55325855f72998d470d7234f281bab18a8019abf
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