projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23d6326
)
dm: simple-bus: Add support for livetree
author
Simon Glass
<sjg@chromium.org>
Fri, 19 May 2017 02:09:11 +0000
(20:09 -0600)
committer
Simon Glass
<sjg@chromium.org>
Thu, 1 Jun 2017 13:03:09 +0000
(07:03 -0600)
Modify simple-bus to support livetree.
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/simple-bus.c
patch
|
blob
|
history
diff --git
a/drivers/core/simple-bus.c
b/drivers/core/simple-bus.c
index a300217d39a898fa3f04fc3a4dc48445fe0a015b..14803e32b12f5a85ba6abb4bd0c0dea5c2bccf45 100644
(file)
--- a/
drivers/core/simple-bus.c
+++ b/
drivers/core/simple-bus.c
@@
-33,8
+33,7
@@
static int simple_bus_post_bind(struct udevice *dev)
u32 cell[3];
int ret;
- ret = fdtdec_get_int_array(gd->fdt_blob, dev_of_offset(dev), "ranges",
- cell, ARRAY_SIZE(cell));
+ ret = dev_read_u32_array(dev, "ranges", cell, ARRAY_SIZE(cell));
if (!ret) {
struct simple_bus_plat *plat = dev_get_uclass_platdata(dev);