]> git.sur5r.net Git - u-boot/blobdiff - drivers/video/exynos_dp.c
video: Drop unused console functions
[u-boot] / drivers / video / exynos_dp.c
index 87bb90777e3f1c9d89f0d699829bb76a18534cdb..5b6fc140e0ef78bd6856dc0ea319496721c5bfdd 100644 (file)
@@ -3,25 +3,13 @@
  *
  * Author: Donghwa Lee <dh09.lee@samsung.com>
  *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.         See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <config.h>
 #include <common.h>
 #include <malloc.h>
+#include <linux/compat.h>
 #include <linux/err.h>
 #include <asm/arch/clk.h>
 #include <asm/arch/cpu.h>
@@ -34,8 +22,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-static struct exynos_dp_platform_data *dp_pd;
-
 void __exynos_set_dp_phy(unsigned int onoff)
 {
 }
@@ -863,7 +849,6 @@ static unsigned int exynos_dp_config_video(struct edp_device_info *edp_info)
        return ret;
 }
 
-#ifdef CONFIG_OF_CONTROL
 int exynos_dp_parse_dt(const void *blob, struct edp_device_info *edp_info)
 {
        unsigned int node = fdtdec_next_compatible(blob, 0,
@@ -917,7 +902,6 @@ int exynos_dp_parse_dt(const void *blob, struct edp_device_info *edp_info)
                                                "samsung,color-depth", 0);
        return 0;
 }
-#endif
 
 unsigned int exynos_init_dp(void)
 {
@@ -930,16 +914,8 @@ unsigned int exynos_init_dp(void)
                return -EFAULT;
        }
 
-#ifdef CONFIG_OF_CONTROL
        if (exynos_dp_parse_dt(gd->fdt_blob, edp_info))
                debug("unable to parse DP DT node\n");
-#else
-       edp_info = dp_pd->edp_dev_info;
-       if (edp_info == NULL) {
-               debug("failed to get edp_info data.\n");
-               return -EFAULT;
-       }
-#endif
 
        exynos_dp_set_base_addr();
 
@@ -979,17 +955,7 @@ unsigned int exynos_init_dp(void)
                return ret;
        }
 
-       printf("Exynos DP init done\n");
+       debug("Exynos DP init done\n");
 
        return ret;
 }
-
-void exynos_set_dp_platform_data(struct exynos_dp_platform_data *pd)
-{
-       if (pd == NULL) {
-               debug("pd is NULL\n");
-               return;
-       }
-
-       dp_pd = pd;
-}