rockchip: make the global board_fit_config_name_match __weak
diff mbox series

Message ID 20200117203709.3252434-1-heiko@sntech.de
State Accepted
Delegated to: Kever Yang
Headers show
Series
  • rockchip: make the global board_fit_config_name_match __weak
Related show

Commit Message

Heiko Stuebner Jan. 17, 2020, 8:37 p.m. UTC
From: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>

The core Rockchip spl code contains a default board_fit_config_name_match
implementation doing nothing. Individual boards may want to handle this
differently, so add a __weak atribute to make it possible to override
this function in other places.

Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
---
 arch/arm/mach-rockchip/spl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kever Yang Feb. 19, 2020, 8:20 a.m. UTC | #1
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
<kever.yang@rock-chips.com>

Thanks,
- Kever

Heiko Stuebner <heiko@sntech.de> 于2020年1月18日周六 上午4:37写道:

> From: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
>
> The core Rockchip spl code contains a default board_fit_config_name_match
> implementation doing nothing. Individual boards may want to handle this
> differently, so add a __weak atribute to make it possible to override
> this function in other places.
>
> Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
> ---
>  arch/arm/mach-rockchip/spl.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-rockchip/spl.c b/arch/arm/mach-rockchip/spl.c
> index 1c091295b4..7339a789fd 100644
> --- a/arch/arm/mach-rockchip/spl.c
> +++ b/arch/arm/mach-rockchip/spl.c
> @@ -143,7 +143,7 @@ void board_init_f(ulong dummy)
>  }
>
>  #ifdef CONFIG_SPL_LOAD_FIT
> -int board_fit_config_name_match(const char *name)
> +int __weak board_fit_config_name_match(const char *name)
>  {
>         /* Just empty function now - can't decide what to choose */
>         debug("%s: %s\n", __func__, name);
> --
> 2.24.1
>
>

Patch
diff mbox series

diff --git a/arch/arm/mach-rockchip/spl.c b/arch/arm/mach-rockchip/spl.c
index 1c091295b4..7339a789fd 100644
--- a/arch/arm/mach-rockchip/spl.c
+++ b/arch/arm/mach-rockchip/spl.c
@@ -143,7 +143,7 @@  void board_init_f(ulong dummy)
 }
 
 #ifdef CONFIG_SPL_LOAD_FIT
-int board_fit_config_name_match(const char *name)
+int __weak board_fit_config_name_match(const char *name)
 {
 	/* Just empty function now - can't decide what to choose */
 	debug("%s: %s\n", __func__, name);