From: Ajay Kumar Date: Thu, 31 Jul 2014 17:42:05 +0000 (+0530) Subject: drm/exynos: dpi: Add support for panel prepare and unprepare routines X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=39bbde9cc0bb0891b470a6ce919d09843f5473e2;p=openwrt%2Fstaging%2Fblogic.git drm/exynos: dpi: Add support for panel prepare and unprepare routines Modify exynos_dpi driver to support the new panel calls: prepare and unprepare. Signed-off-by: Ajay Kumar Acked-by: Inki Dae Signed-off-by: Thierry Reding --- diff --git a/drivers/gpu/drm/exynos/exynos_drm_dpi.c b/drivers/gpu/drm/exynos/exynos_drm_dpi.c index 482127f633c5..f8531533fbf3 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dpi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dpi.c @@ -125,14 +125,18 @@ static int exynos_dpi_create_connector(struct exynos_drm_display *display, static void exynos_dpi_poweron(struct exynos_dpi *ctx) { - if (ctx->panel) + if (ctx->panel) { + drm_panel_prepare(ctx->panel); drm_panel_enable(ctx->panel); + } } static void exynos_dpi_poweroff(struct exynos_dpi *ctx) { - if (ctx->panel) + if (ctx->panel) { drm_panel_disable(ctx->panel); + drm_panel_unprepare(ctx->panel); + } } static void exynos_dpi_dpms(struct exynos_drm_display *display, int mode)