]> git.sur5r.net Git - u-boot/blobdiff - drivers/i2c/cros_ec_tunnel.c
mtd: spi: Correct parameters for s25fs512s flash
[u-boot] / drivers / i2c / cros_ec_tunnel.c
index 9cf8e7dec0f8861b44f5316e7196ce59e6ecf2ba..a630817352ec2bef91f04860d6331b6e35237e05 100644 (file)
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (c) 2015 Google, Inc
  * Written by Simon Glass <sjg@chromium.org>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -34,7 +33,7 @@ static int cros_ec_i2c_ofdata_to_platdata(struct udevice *dev)
 {
        struct cros_ec_i2c_bus *i2c_bus = dev_get_priv(dev);
        const void *blob = gd->fdt_blob;
-       int node = dev->of_offset;
+       int node = dev_of_offset(dev);
 
        i2c_bus->remote_bus = fdtdec_get_uint(blob, node, "google,remote-bus",
                                              0);