diff options
author | Simon Glass <sjg@chromium.org> | 2017-05-18 20:09:59 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-06-01 07:03:17 -0600 |
commit | 03753c9a7bef8436650dbdcfc1f81918765b3fb4 (patch) | |
tree | 327bbda6d546aff775f1d7434d629f64e5315e5b /drivers/sysreset | |
parent | a11817999f0416ca024c3b36ef93cdb13d63d7e4 (diff) | |
download | u-boot-03753c9a7bef8436650dbdcfc1f81918765b3fb4.tar.gz |
dm: sandbox: sysreset: Convert driver to livetree
Update this driver to support a live device tree.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/sysreset')
-rw-r--r-- | drivers/sysreset/sysreset_sandbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/sysreset/sysreset_sandbox.c b/drivers/sysreset/sysreset_sandbox.c index 0c4e2e1a93..12b3e5f86e 100644 --- a/drivers/sysreset/sysreset_sandbox.c +++ b/drivers/sysreset/sysreset_sandbox.c @@ -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) { |