aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorTushar Behera <tushar.behera@linaro.org>2013-08-30 17:15:51 +0530
committerAndrey Konovalov <andrey.konovalov@linaro.org>2014-04-16 23:51:29 +0400
commit03cf1bf1f35c32c3d54eb07ece4c2b892aaf546d (patch)
treedf76ca7a2eeee0351a229fa5f2e6c57244b2dc44 /drivers/gpu
parent7096cab0baebb1b95efaec859a08366bfec750cc (diff)
drm/exynos: Add shutdown hook for HDMI
Without this patch, HDMI monitor still displays data after shutdown. Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Diffstat (limited to 'drivers/gpu')
-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 4fae1dc8704..fe510efb1d9 100644
--- a/drivers/gpu/drm/exynos/exynos_hdmi.c
+++ b/drivers/gpu/drm/exynos/exynos_hdmi.c
@@ -2003,6 +2003,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)
{
@@ -2075,6 +2084,7 @@ static const struct dev_pm_ops hdmi_pm_ops = {
struct platform_driver hdmi_driver = {
.probe = hdmi_probe,
.remove = hdmi_remove,
+ .shutdown = hdmi_shutdown,
.driver = {
.name = "exynos-hdmi",
.owner = THIS_MODULE,