rockchip: clk: rk3288: limit gpll and cpll init to SPL build
[oweals/u-boot.git] / test / dm / spi.c
index 2e27da72d505c6afe2df467c0f89fad1ad08c4a5..f52cb733c775f7f1f9661b6f245f1e5182c0c8a7 100644 (file)
@@ -30,12 +30,12 @@ static int dm_test_spi_find(struct unit_test_state *uts)
                                                       false, &bus));
 
        /*
-        * spi_post_bind() will bind devices to chip selects. Check this then
-        * remove the emulation and the slave device.
+        * The post_bind() method will bind devices to chip selects. Check
+        * this then remove the emulation and the slave device.
         */
        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);