]> Git Repo - u-boot.git/blobdiff - drivers/video/exynos/exynos_dp.c
Merge tag 'dm-pull-14dec20' of git://git.denx.de/u-boot-dm into next
[u-boot.git] / drivers / video / exynos / exynos_dp.c
index 3a6ef62890c09cbd8319043f825c5a5215ee1380..63b5b8e61a27938566c742ddcb50e331d97db603 100644 (file)
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2012 Samsung Electronics
  *
  * Author: Donghwa Lee <[email protected]>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -11,6 +10,8 @@
 #include <common.h>
 #include <display.h>
 #include <fdtdec.h>
+#include <log.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <malloc.h>
 #include <video_bridge.h>
@@ -876,14 +877,14 @@ static unsigned int exynos_dp_config_video(struct exynos_dp *regs,
        return ret;
 }
 
-static int exynos_dp_ofdata_to_platdata(struct udevice *dev)
+static int exynos_dp_of_to_plat(struct udevice *dev)
 {
        struct exynos_dp_priv *priv = dev_get_priv(dev);
        const void *blob = gd->fdt_blob;
        unsigned int node = dev_of_offset(dev);
        fdt_addr_t addr;
 
-       addr = devfdt_get_addr(dev);
+       addr = dev_read_addr(dev);
        if (addr == FDT_ADDR_T_NONE) {
                debug("Can't get the DP base address\n");
                return -EINVAL;
@@ -1079,6 +1080,6 @@ U_BOOT_DRIVER(exynos_dp) = {
        .id     = UCLASS_DISPLAY,
        .of_match = exynos_dp_ids,
        .ops    = &exynos_dp_ops,
-       .ofdata_to_platdata     = exynos_dp_ofdata_to_platdata,
-       .priv_auto_alloc_size   = sizeof(struct exynos_dp_priv),
+       .of_to_plat     = exynos_dp_of_to_plat,
+       .priv_auto      = sizeof(struct exynos_dp_priv),
 };
This page took 0.025841 seconds and 4 git commands to generate.