]> git.sur5r.net Git - u-boot/blobdiff - drivers/i2c/exynos_hs_i2c.c
dm: core: Replace of_offset with accessor
[u-boot] / drivers / i2c / exynos_hs_i2c.c
index 9521aeb3c308c7e6a85efffa7af3c5ddf3099682..2dd75fd154c431d01a8b0b169e3d5c9c2d7d668b 100644 (file)
@@ -522,7 +522,7 @@ static int s3c_i2c_ofdata_to_platdata(struct udevice *dev)
        struct s3c24x0_i2c_bus *i2c_bus = dev_get_priv(dev);
        int node;
 
-       node = dev->of_offset;
+       node = dev_of_offset(dev);
 
        i2c_bus->hsregs = (struct exynos5_hsi2c *)dev_get_addr(dev);