drm/exynos: mic: Fix parse_dt function
authorHoegeun Kwon <hoegeun.kwon@samsung.com>
Thu, 5 Jan 2017 10:20:07 +0000 (19:20 +0900)
committerInki Dae <inki.dae@samsung.com>
Mon, 30 Jan 2017 23:49:33 +0000 (08:49 +0900)
The OF graph is not necessary because the panel is a child of
dsi. therefore, the parse_dt function of dsi does not need to
check the remote_node connected to the panel. and the whole
parse_dt function should be refactored later.

Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_mic.c

index fed1a940ca5d7604768af1f4256a180de350997a..cf9361ab0eb766239b0ae8b7b09e857bb3490bb3 100644 (file)
@@ -269,28 +269,9 @@ static int parse_dt(struct exynos_mic *mic)
                }
                nodes[j++] = remote_node;
 
-               switch (i) {
-               case ENDPOINT_DECON_NODE:
-                       /* decon node */
-                       if (of_get_child_by_name(remote_node,
-                                               "i80-if-timings"))
-                               mic->i80_mode = 1;
-
-                       break;
-               case ENDPOINT_DSI_NODE:
-                       /* panel node */
-                       remote_node = get_remote_node(remote_node, 1);
-                       if (!remote_node) {
-                               ret = -EPIPE;
-                               goto exit;
-                       }
-                       nodes[j++] = remote_node;
-
-                       break;
-               default:
-                       DRM_ERROR("mic: Unknown endpoint from MIC");
-                       break;
-               }
+               if (i == ENDPOINT_DECON_NODE &&
+                       of_get_child_by_name(remote_node, "i80-if-timings"))
+                       mic->i80_mode = 1;
        }
 
 exit: