aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_drv.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c
index c57466edf45b..d41aae0dcc60 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c
@@ -741,6 +741,18 @@ static int exynos_drm_init(void)
741{ 741{
742 int ret; 742 int ret;
743 743
744 /*
745 * Register device object only in case of Exynos SoC.
746 *
747 * Below codes resolves temporarily infinite loop issue incurred
748 * by Exynos drm driver when using multi-platform kernel.
749 * So these codes will be replaced with more generic way later.
750 */
751 if (!of_machine_is_compatible("samsung,exynos3") &&
752 !of_machine_is_compatible("samsung,exynos4") &&
753 !of_machine_is_compatible("samsung,exynos5"))
754 return -ENODEV;
755
744 exynos_drm_pdev = platform_device_register_simple("exynos-drm", -1, 756 exynos_drm_pdev = platform_device_register_simple("exynos-drm", -1,
745 NULL, 0); 757 NULL, 0);
746 if (IS_ERR(exynos_drm_pdev)) 758 if (IS_ERR(exynos_drm_pdev))