summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTushar Behera <tushar.behera@linaro.org>2013-08-30 17:15:51 +0530
committerTushar Behera <tushar.behera@linaro.org>2013-08-30 17:15:54 +0530
commit53cc21ea2c0bc23aaa82d9bb36490e661d765d93 (patch)
treefc528e362d50f9f2de4edfe2e5df05be1b07ac5b
parent70d12a5ce23aa8a632c72a5328b43eaf41f46d7d (diff)
drm/exynos: Add shutdown hooksamsung-lt-v3.11-rc7-1
Without this patch, HDMI monitor still displays data after shutdown. Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
-rw-r--r--drivers/gpu/drm/exynos/exynos_hdmi.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c
index 241eb72061b9..44361abe2320 100644
--- a/drivers/gpu/drm/exynos/exynos_hdmi.c
+++ b/drivers/gpu/drm/exynos/exynos_hdmi.c
@@ -2143,6 +2143,15 @@ static int hdmi_remove(struct platform_device *pdev)
return 0;
}
+static void hdmi_shutdown(struct platform_device *pdev)
+{
+ struct device *dev = &pdev->dev;
+ struct exynos_drm_hdmi_context *ctx = get_hdmi_context(dev);
+ struct hdmi_context *hdata = ctx->ctx;
+
+ hdmi_poweroff(hdata);
+}
+
#ifdef CONFIG_PM_SLEEP
static int hdmi_suspend(struct device *dev)
{
@@ -2215,6 +2224,7 @@ static const struct dev_pm_ops hdmi_pm_ops = {
struct platform_driver hdmi_driver = {
.probe = hdmi_probe,
.remove = hdmi_remove,
+ .shutdown = hdmi_shutdown,
.id_table = hdmi_driver_types,
.driver = {
.name = "exynos-hdmi",