[PATCH 2/8] of: export of_get_reserve_map
Ahmad Fatoum
a.fatoum at pengutronix.de
Tue Apr 20 09:47:39 BST 2021
On 20.04.21 09:56, Rouven Czerwinski wrote:
> This allows the retrieval of the reserve map for usage in other
> functions, in this case one of the next commits will use this
> information to modify the MMU map.
>
> Signed-off-by: Rouven Czerwinski <r.czerwinski at pengutronix.de>
Function existed before. Please adjust commit message to note what
actually changes: A new stub is introduced for !CONFIG_OFTREE.
With this comment addressed:
Reviewed-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
> ---
> include/of.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/include/of.h b/include/of.h
> index 7c8640a1d6..088b088223 100644
> --- a/include/of.h
> +++ b/include/of.h
> @@ -117,6 +117,7 @@ struct device_node *of_unflatten_dtb_const(const void *infdt);
> struct cdev;
>
> #ifdef CONFIG_OFTREE
> +struct of_reserve_map *of_get_reserve_map(void);
> extern int of_bus_n_addr_cells(struct device_node *np);
> extern int of_n_addr_cells(struct device_node *np);
> extern int of_bus_n_size_cells(struct device_node *np);
> @@ -774,6 +775,10 @@ static inline int of_autoenable_i2c_by_component(char *path)
> return -ENODEV;
> }
>
> +static inline struct of_reserve_map *of_get_reserve_map(void)
> +{
> + return NULL;
> +}
>
> #endif
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list