]> git.sur5r.net Git - u-boot/blobdiff - drivers/serial/sandbox.c
serial: meson: Update compatible with new Linux bindings
[u-boot] / drivers / serial / sandbox.c
index bcc3465312e8819c71ff3667b3847b09e6de84bd..858e340f5937d0b7b5031042893063f19a905bd0 100644 (file)
@@ -152,7 +152,7 @@ static int sandbox_serial_ofdata_to_platdata(struct udevice *dev)
        int i;
 
        plat->colour = -1;
-       colour = fdt_getprop(gd->fdt_blob, dev->of_offset,
+       colour = fdt_getprop(gd->fdt_blob, dev_of_offset(dev),
                             "sandbox,text-colour", NULL);
        if (colour) {
                for (i = 0; i < ARRAY_SIZE(ansi_colour); i++) {