]> git.sur5r.net Git - u-boot/blobdiff - drivers/video/sandbox_sdl.c
dm: core: Update of_read_fmap_entry() for livetree
[u-boot] / drivers / video / sandbox_sdl.c
index dc5a220d512448efc009cba06b2092056b216e39..913651c565c8affe67c7ccbd22899fe220cd59ca 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (c) 2013 Google, Inc
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -46,7 +45,7 @@ static int sandbox_sdl_bind(struct udevice *dev)
        struct video_uc_platdata *uc_plat = dev_get_uclass_platdata(dev);
        struct sandbox_sdl_plat *plat = dev_get_platdata(dev);
        const void *blob = gd->fdt_blob;
-       int node = dev->of_offset;
+       int node = dev_of_offset(dev);
        int ret = 0;
 
        plat->xres = fdtdec_get_int(blob, node, "xres", LCD_MAX_WIDTH);