]> git.sur5r.net Git - u-boot/blobdiff - drivers/video/broadwell_igd.c
Merge tag 'signed-efi-2018.07' of git://github.com/agraf/u-boot
[u-boot] / drivers / video / broadwell_igd.c
index beef770f920f4d9c41933b28fa5cd9759a71d9ed..e6df037cb93c653dbe755c7fe558fcc651fcb12e 100644 (file)
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * From coreboot src/soc/intel/broadwell/igd.c
  *
  * Copyright (C) 2016 Google, Inc
- *
- * SPDX-License-Identifier:    GPL-2.0
  */
 
 #include <common.h>
@@ -705,7 +704,7 @@ static int broadwell_igd_ofdata_to_platdata(struct udevice *dev)
 {
        struct broadwell_igd_plat *plat = dev_get_platdata(dev);
        struct broadwell_igd_priv *priv = dev_get_priv(dev);
-       int node = dev->of_offset;
+       int node = dev_of_offset(dev);
        const void *blob = gd->fdt_blob;
 
        if (fdtdec_get_int_array(blob, node, "intel,dp-hotplug",