]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/misc/tegra_car.c
dm: core: Replace of_offset with accessor
[people/ms/u-boot.git] / drivers / misc / tegra_car.c
index 0eb009657c43ed7b995a688296b908b3b33eb1a2..5db3c374ce0a1021f78af71d043df88e6a12272f 100644 (file)
@@ -22,12 +22,12 @@ static int tegra_car_bpmp_bind(struct udevice *dev)
        debug("%s(dev=%p)\n", __func__, dev);
 
        ret = device_bind_driver_to_node(dev, "tegra_car_clk", "tegra_car_clk",
-                                        dev->of_offset, &child);
+                                        dev_of_offset(dev), &child);
        if (ret)
                return ret;
 
        ret = device_bind_driver_to_node(dev, "tegra_car_reset",
-                                        "tegra_car_reset", dev->of_offset,
+                                        "tegra_car_reset", dev_of_offset(dev),
                                         &child);
        if (ret)
                return ret;