aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHoegeun Kwon <hoegeun.kwon@samsung.com>2017-01-05 05:20:07 -0500
committerInki Dae <inki.dae@samsung.com>2017-01-30 18:49:33 -0500
commitcc2b022518b0d3b040a9016dffccd35d47e8bd8f (patch)
treed0be5923bef4582b18db3dff8811e369d10e6871
parente87eb57c69003a99b18d43abe58d5850ad19e188 (diff)
drm/exynos: mic: Fix parse_dt function
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>
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_mic.c25
1 files changed, 3 insertions, 22 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_mic.c b/drivers/gpu/drm/exynos/exynos_drm_mic.c
index fed1a940ca5d..cf9361ab0eb7 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_mic.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_mic.c
@@ -269,28 +269,9 @@ static int parse_dt(struct exynos_mic *mic)
269 } 269 }
270 nodes[j++] = remote_node; 270 nodes[j++] = remote_node;
271 271
272 switch (i) { 272 if (i == ENDPOINT_DECON_NODE &&
273 case ENDPOINT_DECON_NODE: 273 of_get_child_by_name(remote_node, "i80-if-timings"))
274 /* decon node */ 274 mic->i80_mode = 1;
275 if (of_get_child_by_name(remote_node,
276 "i80-if-timings"))
277 mic->i80_mode = 1;
278
279 break;
280 case ENDPOINT_DSI_NODE:
281 /* panel node */
282 remote_node = get_remote_node(remote_node, 1);
283 if (!remote_node) {
284 ret = -EPIPE;
285 goto exit;
286 }
287 nodes[j++] = remote_node;
288
289 break;
290 default:
291 DRM_ERROR("mic: Unknown endpoint from MIC");
292 break;
293 }
294 } 275 }
295 276
296exit: 277exit: