diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2011-10-18 16:58:05 +0900 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2011-11-15 14:58:44 +0900 |
commit | 7db3eba6bf84ab744e39dcce24b7e06d01bab913 (patch) | |
tree | 3e14e5b72b0c301056632212a418541048ddde43 /drivers/gpu/drm/exynos/exynos_drm_drv.c | |
parent | d53dab3ae1a3c6b438738c3792c98ac63f0061f4 (diff) |
drm/exynos: added kms poll for handling hpd event
this patch adds kms poll infrastructure to handle hotplug detection event
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_drv.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_drv.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c index 83810cbe3c17..53e2216de61d 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.c +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c @@ -27,6 +27,7 @@ #include "drmP.h" #include "drm.h" +#include "drm_crtc_helper.h" #include <drm/exynos_drm.h> @@ -61,6 +62,9 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags) drm_mode_config_init(dev); + /* init kms poll for handling hpd */ + drm_kms_helper_poll_init(dev); + exynos_drm_mode_config_init(dev); /* @@ -116,6 +120,7 @@ static int exynos_drm_unload(struct drm_device *dev) exynos_drm_fbdev_fini(dev); exynos_drm_device_unregister(dev); drm_vblank_cleanup(dev); + drm_kms_helper_poll_fini(dev); drm_mode_config_cleanup(dev); kfree(dev->dev_private); |