]> git.sur5r.net Git - u-boot/blobdiff - drivers/spi/mvebu_a3700_spi.c
dm: core: Replace of_offset with accessor
[u-boot] / drivers / spi / mvebu_a3700_spi.c
index 7c58c3661fa2c06cf35894df811a2803fde017ed..ee847e461050e6e1230f64085d56b098c52aa864 100644 (file)
@@ -261,9 +261,9 @@ static int mvebu_spi_ofdata_to_platdata(struct udevice *bus)
         * it should be used to read the input clock and the DT property
         * can be removed.
         */
-       plat->clock = fdtdec_get_int(gd->fdt_blob, bus->of_offset,
+       plat->clock = fdtdec_get_int(gd->fdt_blob, dev_of_offset(bus),
                                     "clock-frequency", 160000);
-       plat->frequency = fdtdec_get_int(gd->fdt_blob, bus->of_offset,
+       plat->frequency = fdtdec_get_int(gd->fdt_blob, dev_of_offset(bus),
                                         "spi-max-frequency", 40000);
 
        return 0;