]> git.sur5r.net Git - u-boot/blobdiff - drivers/i2c/cros_ec_tunnel.c
gpio: sunxi: Add compatible string for H5 PIO
[u-boot] / drivers / i2c / cros_ec_tunnel.c
index 9cf8e7dec0f8861b44f5316e7196ce59e6ecf2ba..86fa684ff0553420ba945d2442306316c8c1de8f 100644 (file)
@@ -34,7 +34,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);