summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorInki Dae2012-06-27 09:00:56 +0200
committerInki Dae2012-07-27 04:13:56 +0200
commitd07d39df303f91b17d41e86b402f5cf9e98e7492 (patch)
tree519b0e0dd693918b7c7388b404c8c1a2b82ac893 /drivers/gpu/drm
parentdrm/exynos: removed unnecessary declaration. (diff)
downloadkernel-qcow2-linux-d07d39df303f91b17d41e86b402f5cf9e98e7492.tar.gz
kernel-qcow2-linux-d07d39df303f91b17d41e86b402f5cf9e98e7492.tar.xz
kernel-qcow2-linux-d07d39df303f91b17d41e86b402f5cf9e98e7492.zip
drm/exynos: set edid fake data only for test.
Signed-off-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_vidi.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_vidi.c b/drivers/gpu/drm/exynos/exynos_drm_vidi.c
index 5640d57b4693..88dae6b012b3 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_vidi.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_vidi.c
@@ -529,6 +529,10 @@ static int vidi_store_connection(struct device *dev,
if (ctx->connected > 1)
return -EINVAL;
+ /* use fake edid data for test. */
+ if (!ctx->raw_edid)
+ ctx->raw_edid = (struct edid *)fake_edid_info;
+
DRM_DEBUG_KMS("requested connection.\n");
drm_helper_hpd_irq_event(ctx->subdrv.drm_dev);
@@ -612,9 +616,6 @@ static int __devinit vidi_probe(struct platform_device *pdev)
INIT_WORK(&ctx->work, vidi_fake_vblank_handler);
- /* for test */
- ctx->raw_edid = (struct edid *)fake_edid_info;
-
subdrv = &ctx->subdrv;
subdrv->dev = dev;
subdrv->manager = &vidi_manager;