diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-02-17 14:47:01 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-03-06 11:41:28 +0100 |
commit | 004cce1347e876b008c494ce440d5115d47e6cbe (patch) | |
tree | f912cffccd8ccf2311c28a3467fbb89e6bf5c4ab /include | |
parent | 1d9859d5e70fe5c5269ecf0d22ede270da57ac4f (diff) | |
download | barebox-004cce1347e876b008c494ce440d5115d47e6cbe.tar.gz barebox-004cce1347e876b008c494ce440d5115d47e6cbe.tar.xz |
of: make flatten independent of libfdt
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/of.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/of.h b/include/of.h index 4622b80280..2cd55c00fc 100644 --- a/include/of.h +++ b/include/of.h @@ -64,6 +64,8 @@ struct of_device_id { unsigned long data; }; +#define OF_MAX_RESERVE_MAP 16 + struct driver_d; int of_match(struct device_d *dev, struct driver_d *drv); @@ -168,7 +170,7 @@ int of_set_root_node(struct device_node *); int of_alias_get_id(struct device_node *np, const char *stem); int of_device_is_stdout_path(struct device_d *dev); const char *of_get_model(void); -void *of_flatten_dtb(void); +void *of_flatten_dtb(struct device_node *node); int of_add_memory(struct device_node *node, bool dump); #else static inline int of_parse_partitions(const char *cdevname, @@ -197,7 +199,7 @@ static inline const char *of_get_model(void) return NULL; } -static inline void *of_flatten_dtb(void) +static inline void *of_flatten_dtb(struct device_node *node) { return NULL; } |