summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAjay Kumar <ajaykumar.rs@samsung.com>2013-02-21 23:52:58 +0000
committerMinkyu Kang <mk7.kang@samsung.com>2013-03-27 21:17:15 +0900
commitc18222bee868ae65a878165551d3d407c402f48c (patch)
tree03617b93a08f9778e49db432aa484e69700f9a2e /drivers
parent29fd57046e3c33c5d75eb2e7e6607cdf49e162ac (diff)
downloadu-boot-imx-c18222bee868ae65a878165551d3d407c402f48c.zip
u-boot-imx-c18222bee868ae65a878165551d3d407c402f48c.tar.gz
u-boot-imx-c18222bee868ae65a878165551d3d407c402f48c.tar.bz2
video: exynos_dp: Remove callbacks from the driver
Replaced the functionality of callbacks by using a standard set of functions. Instead of implementing and hooking up a callback, put the same code in one of the standard set of functions by overriding it. Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/exynos_dp.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/video/exynos_dp.c b/drivers/video/exynos_dp.c
index d72fa56..b2accc7 100644
--- a/drivers/video/exynos_dp.c
+++ b/drivers/video/exynos_dp.c
@@ -32,6 +32,12 @@
static struct exynos_dp_platform_data *dp_pd;
+void __exynos_set_dp_phy(unsigned int onoff)
+{
+}
+void exynos_set_dp_phy(unsigned int onoff)
+ __attribute__((weak, alias("__exynos_set_dp_phy")));
+
static void exynos_dp_disp_info(struct edp_disp_info *disp_info)
{
disp_info->h_total = disp_info->h_res + disp_info->h_sync_width +
@@ -872,8 +878,7 @@ unsigned int exynos_init_dp(void)
exynos_dp_disp_info(&edp_info->disp_info);
- if (dp_pd->phy_enable)
- dp_pd->phy_enable(1);
+ exynos_set_dp_phy(1);
ret = exynos_dp_init_dp();
if (ret != EXYNOS_DP_SUCCESS) {