diff options
author | Gavin Shan <gwshan@linux.vnet.ibm.com> | 2016-05-03 16:22:51 +0300 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2016-05-16 15:22:35 +0300 |
commit | 83262418b0ef8bda66eca7c72d4c24ae6f7b230e (patch) | |
tree | e0eca40010efc061ba901a13ca42ec12a461eec0 /include/linux/of_fdt.h | |
parent | c4263233f30e72f2645ff83c9074c994f88b015a (diff) | |
download | linux-83262418b0ef8bda66eca7c72d4c24ae6f7b230e.tar.xz |
drivers/of: Return allocated memory from of_fdt_unflatten_tree()
This returns the allocate memory chunk, storing the unflattened device
tree, from of_fdt_unflatten_tree() so that memory chunk can be released
on demand in PowerNV PCI hotplug driver.
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'include/linux/of_fdt.h')
-rw-r--r-- | include/linux/of_fdt.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h index 1bffcbd56f8e..901ec01c9fba 100644 --- a/include/linux/of_fdt.h +++ b/include/linux/of_fdt.h @@ -37,9 +37,9 @@ extern bool of_fdt_is_big_endian(const void *blob, unsigned long node); extern int of_fdt_match(const void *blob, unsigned long node, const char *const *compat); -extern void of_fdt_unflatten_tree(const unsigned long *blob, - struct device_node *dad, - struct device_node **mynodes); +extern void *of_fdt_unflatten_tree(const unsigned long *blob, + struct device_node *dad, + struct device_node **mynodes); /* TBD: Temporary export of fdt globals - remove when code fully merged */ extern int __initdata dt_root_addr_cells; |