]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/led/led_gpio.c
dm: core: Replace of_offset with accessor
[people/ms/u-boot.git] / drivers / led / led_gpio.c
index cb6e996931b3d33c18d7cdac3466dc7ffe532377..5b119903f55e431e1a811ca9032d4b2e2a3770a4 100644 (file)
@@ -62,7 +62,7 @@ static int led_gpio_bind(struct udevice *parent)
        int node;
        int ret;
 
-       for (node = fdt_first_subnode(blob, parent->of_offset);
+       for (node = fdt_first_subnode(blob, dev_of_offset(parent));
             node > 0;
             node = fdt_next_subnode(blob, node)) {
                struct led_uclass_plat *uc_plat;