]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/gpio/sunxi_gpio.c
dm: core: Replace of_offset with accessor
[people/ms/u-boot.git] / drivers / gpio / sunxi_gpio.c
index e8accaa333026a08da7931e9527d4a3b41243b31..8d2bb18504aeae4e05981df68521dcab33154b5a 100644 (file)
@@ -312,7 +312,7 @@ static int gpio_sunxi_bind(struct udevice *parent)
                                        plat->bank_name, plat, -1, &dev);
                if (ret)
                        return ret;
-               dev->of_offset = parent->of_offset;
+               dev_set_of_offset(dev, dev_of_offset(parent));
        }
 
        return 0;