]> git.sur5r.net Git - u-boot/blobdiff - drivers/remoteproc/ti_power_proc.c
gpio: omap_gpio: Convert to auto-alloc feature when DT is supported
[u-boot] / drivers / remoteproc / ti_power_proc.c
index 76ac3be092e2567642316221326fd1f86b2502c2..f9660d451137ce6cea5596f8d2c37f8be84f8092 100644 (file)
@@ -1,7 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2015-2016
  * Texas Instruments Incorporated - http://www.ti.com/
- * SPDX-License-Identifier:    GPL-2.0+
  */
 #define pr_fmt(fmt) "%s: " fmt, __func__
 #include <common.h>
@@ -33,7 +33,7 @@ struct ti_powerproc_privdata {
 static int ti_of_to_priv(struct udevice *dev,
                         struct ti_powerproc_privdata *priv)
 {
-       int node = dev->of_offset;
+       int node = dev_of_offset(dev);
        const void *blob = gd->fdt_blob;
        int tmp;