dm: core: Replace of_offset with accessor
[oweals/u-boot.git] / drivers / sysreset / sysreset_sandbox.c
index 7ae7f386ee026aeccfa498250177de78044e2c87..0c4e2e1a93a696903cee0c8fb8f6e7e303854155 100644 (file)
@@ -41,7 +41,7 @@ static int sandbox_sysreset_request(struct udevice *dev, enum sysreset_t type)
         * (see the U_BOOT_DEVICE() declaration below) should not do anything.
         * If we are that device, return an error.
         */
-       if (state->fdt_fname && dev->of_offset == -1)
+       if (state->fdt_fname && dev_of_offset(dev) == -1)
                return -ENODEV;
 
        switch (type) {