drm/exynos: remove SoC checking code
authorAndrzej Hajda <a.hajda@samsung.com>
Mon, 8 Jun 2015 10:15:42 +0000 (12:15 +0200)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 31 Mar 2016 07:59:16 +0000 (16:59 +0900)
SoC checking code is not necessary anymore, as exynos_drm_match_add and
exynos_drm_platform_probe already properly handles situation when there are
no Exynos DRM components.

Change-Id: Ifa313c98b5e6903dd8f8843fb9b861334bbdfe79
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Tested-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_drv.c

index 1c03c96033c48541a00d4374712baae322a6c85c..0e24b2f52ac70876d7296b0a207427431dc6737e 100644 (file)
@@ -567,34 +567,9 @@ static inline void exynos_drm_unregister_non_kms_drivers(void)
                                        ARRAY_SIZE(exynos_drm_non_kms_drivers));
 }
 
-static const char * const strings[] = {
-       "samsung,exynos3",
-       "samsung,exynos4",
-       "samsung,exynos5",
-       "samsung,exynos7",
-};
-
 static int exynos_drm_init(void)
 {
-       bool is_exynos = false;
-       int ret, i;
-
-       /*
-        * Register device object only in case of Exynos SoC.
-        *
-        * Below codes resolves temporarily infinite loop issue incurred
-        * by Exynos drm driver when using multi-platform kernel.
-        * So these codes will be replaced with more generic way later.
-        */
-       for (i = 0; i < ARRAY_SIZE(strings); i++) {
-               if (of_machine_is_compatible(strings[i])) {
-                       is_exynos = true;
-                       break;
-               }
-       }
-
-       if (!is_exynos)
-               return -ENODEV;
+       int ret;
 
        ret = exynos_drm_register_devices();
        if (ret)