]> git.sur5r.net Git - u-boot/blobdiff - drivers/i2c/mxc_i2c.c
imx6: icorem6_rqs: Update SPL board boot order for eMMC
[u-boot] / drivers / i2c / mxc_i2c.c
index 94d9027d256d9e0ef78a9fcf59cc892f17e1d11d..eb789f5bff492246bf19ae5698b6b4367607d818 100644 (file)
@@ -750,7 +750,7 @@ static int mxc_i2c_probe(struct udevice *bus)
 {
        struct mxc_i2c_bus *i2c_bus = dev_get_priv(bus);
        const void *fdt = gd->fdt_blob;
-       int node = bus->of_offset;
+       int node = dev_of_offset(bus);
        fdt_addr_t addr;
        int ret, ret2;