diff options
author | Christopher Spinrath <christopher.spinrath@rwth-aachen.de> | 2016-07-12 21:37:35 (GMT) |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2016-07-19 17:52:12 (GMT) |
commit | f4ae23a7cd6fff3e0b9d250411b6714c6a1a2930 (patch) | |
tree | 37292e89a04cfdf1b8cb5be6d20bc68a34e42a63 | |
parent | f0f6724f86b4e86c8977f33a835a1b77352be7c4 (diff) | |
download | u-boot-fsl-qoriq-f4ae23a7cd6fff3e0b9d250411b6714c6a1a2930.tar.xz |
fdt_support: define stub for fdt_fixup_mtdparts
Define an inline stub for fdt_fixup_mtdparts in the case that
CONFIG_FDT_FIXUP_PARTITIONS is not defined. This avoids the need
to guard every call to this function by a proper #ifdef in board
files.
Signed-off-by: Christopher Spinrath <christopher.spinrath@rwth-aachen.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Igor Grinberg <grinberg@compulab.co.il>
-rw-r--r-- | include/fdt_support.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h index d34e959..7318098 100644 --- a/include/fdt_support.h +++ b/include/fdt_support.h @@ -172,7 +172,13 @@ int fdt_increase_size(void *fdt, int add_len); int fdt_fixup_nor_flash_size(void *blob); +#if defined(CONFIG_FDT_FIXUP_PARTITIONS) void fdt_fixup_mtdparts(void *fdt, void *node_info, int node_info_size); +#else +static inline void fdt_fixup_mtdparts(void *fdt, void *node_info, + int node_info_size) {} +#endif + void fdt_del_node_and_alias(void *blob, const char *alias); u64 fdt_translate_address(void *blob, int node_offset, const __be32 *in_addr); int fdt_node_offset_by_compat_reg(void *blob, const char *compat, |