Skip to content
Snippets Groups Projects
Commit 03753c9a authored by Simon Glass's avatar Simon Glass
Browse files

dm: sandbox: sysreset: Convert driver to livetree


Update this driver to support a live device tree.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent a1181799
No related branches found
No related tags found
No related merge requests found
......@@ -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(dev) == -1)
if (state->fdt_fname && !dev_of_valid(dev))
return -ENODEV;
switch (type) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment