mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-30 16:40:44 +09:00
dm: sandbox: sysreset: Convert driver to livetree
Update this driver to support a live device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
a11817999f
commit
03753c9a7b
@ -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.
|
* (see the U_BOOT_DEVICE() declaration below) should not do anything.
|
||||||
* If we are that device, return an error.
|
* 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;
|
return -ENODEV;
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user