diff options
author | Simon Glass <sjg@chromium.org> | 2018-06-11 13:07:17 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-07-09 09:11:00 -0600 |
commit | 5e0a7341cdda182f310624d5c336fb48be04a703 (patch) | |
tree | 1b589315dc431673be8fa88d80bad18ec1f6393a /drivers/misc | |
parent | 008dcddf9937bd2576f98b48eb5bf0f60ad36014 (diff) | |
download | u-boot-5e0a7341cdda182f310624d5c336fb48be04a703.tar.gz u-boot-5e0a7341cdda182f310624d5c336fb48be04a703.tar.bz2 u-boot-5e0a7341cdda182f310624d5c336fb48be04a703.zip |
dm: core: Update of_read_fmap_entry() for livetree
Update this function to take an ofnode so that it can work with livetree.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/cros_ec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/cros_ec.c b/drivers/misc/cros_ec.c index 5fd2cd9973..6f299d407a 100644 --- a/drivers/misc/cros_ec.c +++ b/drivers/misc/cros_ec.c @@ -1028,7 +1028,7 @@ int cros_ec_decode_ec_flash(struct udevice *dev, struct fdt_cros_ec *config) return -1; } - if (of_read_fmap_entry(flash_node, "flash", &config->flash)) { + if (ofnode_read_fmap_entry(flash_node, &config->flash)) { debug("Failed to decode flash node in chrome-ec\n"); return -1; } @@ -1050,7 +1050,7 @@ int cros_ec_decode_ec_flash(struct udevice *dev, struct fdt_cros_ec *config) return -1; } - if (of_read_fmap_entry(node, "reg", &config->region[region])) { + if (ofnode_read_fmap_entry(node, &config->region[region])) { debug("Failed to decode flash region in chrome-ec'\n"); return -1; } |