From bb208f89fa19c992fa57ef9c9eaf7307b1923840 Mon Sep 17 00:00:00 2001 From: Jaehoe Yang Date: Thu, 16 Aug 2018 21:32:23 +0900 Subject: [PATCH] [HACK] fbdev: dpu20: modify sub-dev shutdown callback. Change-Id: I972b84ca6beaa45d5ef28aad071d99dd8aec69e4 Signed-off-by: Jaehoe Yang Signed-off-by: hwangjae lee --- drivers/video/fbdev/exynos/dpu20/displayport_drv.c | 4 ++++ drivers/video/fbdev/exynos/dpu20/dsim_drv.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/drivers/video/fbdev/exynos/dpu20/displayport_drv.c b/drivers/video/fbdev/exynos/dpu20/displayport_drv.c index 9cd552ae3bb6..323a288f6931 100644 --- a/drivers/video/fbdev/exynos/dpu20/displayport_drv.c +++ b/drivers/video/fbdev/exynos/dpu20/displayport_drv.c @@ -3094,6 +3094,7 @@ err: static void displayport_shutdown(struct platform_device *pdev) { +#if 0 struct displayport_device *displayport = platform_get_drvdata(pdev); /* DPU_EVENT_LOG(DPU_EVT_DP_SHUTDOWN, &displayport->sd, ktime_set(0, 0)); */ @@ -3102,6 +3103,9 @@ static void displayport_shutdown(struct platform_device *pdev) displayport_disable(displayport); displayport_info("%s -\n", __func__); +#else + displayport_info("%s +-\n", __func__); +#endif } static int displayport_runtime_suspend(struct device *dev) diff --git a/drivers/video/fbdev/exynos/dpu20/dsim_drv.c b/drivers/video/fbdev/exynos/dpu20/dsim_drv.c index 05099901c59a..bd8c49b368c3 100644 --- a/drivers/video/fbdev/exynos/dpu20/dsim_drv.c +++ b/drivers/video/fbdev/exynos/dpu20/dsim_drv.c @@ -1784,6 +1784,7 @@ static int dsim_remove(struct platform_device *pdev) static void dsim_shutdown(struct platform_device *pdev) { +#if 0 struct dsim_device *dsim = platform_get_drvdata(pdev); DPU_EVENT_LOG(DPU_EVT_DSIM_SHUTDOWN, &dsim->sd, ktime_set(0, 0)); @@ -1792,6 +1793,9 @@ static void dsim_shutdown(struct platform_device *pdev) dsim_disable(dsim); dsim_info("%s -\n", __func__); +#else + dsim_info("%s +-\n", __func__); +#endif } static int dsim_runtime_suspend(struct device *dev) -- 2.20.1