]> git.sur5r.net Git - u-boot/blobdiff - test/dm/spi.c
dm: core: Replace of_offset with accessor
[u-boot] / test / dm / spi.c
index 5733096066c9780a4539270856b03ef4840ffab3..f52cb733c775f7f1f9661b6f245f1e5182c0c8a7 100644 (file)
@@ -35,7 +35,7 @@ static int dm_test_spi_find(struct unit_test_state *uts)
         */
        ut_asserteq(0, uclass_get_device_by_seq(UCLASS_SPI, busnum, &bus));
        ut_assertok(spi_cs_info(bus, cs, &info));
-       of_offset = info.dev->of_offset;
+       of_offset = dev_of_offset(info.dev);
        device_remove(info.dev);
        device_unbind(info.dev);