summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorAndrzej Hajda <a.hajda@samsung.com>2015-06-08 12:15:42 +0200
committerInki Dae <daeinki@gmail.com>2015-06-20 00:32:55 +0900
commite3b9e4602a9e832f46592daed0138543897e9b18 (patch)
tree31f8e109c4ced7ff255767c92a4e19cf0996fced /drivers/gpu
parent8665040850e3cb1a5d288bcb2c5164538e80373e (diff)
downloadop-kernel-dev-e3b9e4602a9e832f46592daed0138543897e9b18.zip
op-kernel-dev-e3b9e4602a9e832f46592daed0138543897e9b18.tar.gz
drm/exynos: remove SoC checking code
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. 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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_drv.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c
index af1ec13..591bdec 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c
@@ -560,34 +560,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)
OpenPOWER on IntegriCloud