summaryrefslogtreecommitdiff
path: root/drivers/video/exynos_dp.c
diff options
context:
space:
mode:
authorAjay Kumar <ajaykumar.rs@samsung.com>2013-02-21 23:53:04 +0000
committerMinkyu Kang <mk7.kang@samsung.com>2013-03-27 21:21:19 +0900
commitbeded3d13a8d87dfdf16fb4ca5a128c14fb75af9 (patch)
tree1278697be3389462452a369920868174187cab10 /drivers/video/exynos_dp.c
parent539d8f49df6e50571453322b1795c0f157bbe21f (diff)
video: exynos_dp: Make dp_regs global
dp_regs variable was redundantly defined across all the functions in the driver even though it contains just the same address. We make it global and initialize it once using exynos_dp_set_base_addr(). >From then on, other funtions can use the address stored in the global variable. Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'drivers/video/exynos_dp.c')
-rw-r--r--drivers/video/exynos_dp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/exynos_dp.c b/drivers/video/exynos_dp.c
index b2accc76c5..5f4f25e64c 100644
--- a/drivers/video/exynos_dp.c
+++ b/drivers/video/exynos_dp.c
@@ -876,6 +876,8 @@ unsigned int exynos_init_dp(void)
return -EFAULT;
}
+ exynos_dp_set_base_addr();
+
exynos_dp_disp_info(&edp_info->disp_info);
exynos_set_dp_phy(1);