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