Message ID | 20190905084849.20596-5-matthias.bgg@kernel.org |
---|---|
State | Accepted |
Commit | 7a3f15e7181cf5a9667ff410260397f0e51c9020 |
Delegated to: | Simon Glass |
Headers | show |
Series | Fix default values for address and size cells | expand |
On Thu, 5 Sep 2019 at 01:49, <matthias.bgg@kernel.org> wrote: > > From: Matthias Brugger <mbrugger@suse.com> > > Default address cells value on the livetree access function > returns the wrong value. Fix this so that the value returned > corresponds to the device tree specification. > > Signed-off-by: Matthias Brugger <mbrugger@suse.com> > --- > > include/dm/of.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass <sjg@chromium.org>
On Thu, 5 Sep 2019 at 01:49, <matthias.bgg@kernel.org> wrote: > > From: Matthias Brugger <mbrugger@suse.com> > > Default address cells value on the livetree access function > returns the wrong value. Fix this so that the value returned > corresponds to the device tree specification. > > Signed-off-by: Matthias Brugger <mbrugger@suse.com> > --- > > include/dm/of.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass <sjg@chromium.org> Applied to u-boot-dm/next, thanks!
diff --git a/include/dm/of.h b/include/dm/of.h index 461e25aa19..6bef73b441 100644 --- a/include/dm/of.h +++ b/include/dm/of.h @@ -111,7 +111,7 @@ static inline const char *of_node_full_name(const struct device_node *np) /* Default #address and #size cells */ #if !defined(OF_ROOT_NODE_ADDR_CELLS_DEFAULT) -#define OF_ROOT_NODE_ADDR_CELLS_DEFAULT 1 +#define OF_ROOT_NODE_ADDR_CELLS_DEFAULT 2 #define OF_ROOT_NODE_SIZE_CELLS_DEFAULT 1 #endif