mirror of
https://github.com/u-boot/u-boot.git
synced 2025-01-20 17:53:33 +08:00
dm: Fix default address cells return value
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>
This commit is contained in:
parent
8076fc298e
commit
7a3f15e718
@ -111,7 +111,7 @@ static inline const char *of_node_full_name(const struct device_node *np)
|
|||||||
|
|
||||||
/* Default #address and #size cells */
|
/* Default #address and #size cells */
|
||||||
#if !defined(OF_ROOT_NODE_ADDR_CELLS_DEFAULT)
|
#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
|
#define OF_ROOT_NODE_SIZE_CELLS_DEFAULT 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user