[PATCH v2 2/7] board: mediatek: mt8390_evk: remove empty board_init()

Macpaul Lin (林智斌) Macpaul.Lin at mediatek.com
Thu Feb 12 11:35:26 CET 2026


On Mon, 2026-02-09 at 10:39 -0600, David Lechner wrote:
> Remove empty board_init() function and adjust defconfig to not
> require
> it.
> 
> Signed-off-by: David Lechner <dlechner at baylibre.com>
> ---
>  board/mediatek/mt8390_evk/mt8390_evk.c | 5 -----
>  configs/mt8390_evk_defconfig           | 1 +
>  2 files changed, 1 insertion(+), 5 deletions(-)
> 
> diff --git a/board/mediatek/mt8390_evk/mt8390_evk.c
> b/board/mediatek/mt8390_evk/mt8390_evk.c
> index 1ca40366a55..5731199bf83 100644
> --- a/board/mediatek/mt8390_evk/mt8390_evk.c
> +++ b/board/mediatek/mt8390_evk/mt8390_evk.c
> @@ -7,11 +7,6 @@
>  #include <linux/types.h>
>  #include <asm/armv8/mmu.h>
>  
> -int board_init(void)
> -{
> -	return 0;
> -}
> -
>  static struct mm_region mt8390_evk_mem_map[] = {
>  	{
>  		/* DDR */
> diff --git a/configs/mt8390_evk_defconfig
> b/configs/mt8390_evk_defconfig
> index 9bc1d922587..06437be625e 100644
> --- a/configs/mt8390_evk_defconfig
> +++ b/configs/mt8390_evk_defconfig
> @@ -9,6 +9,7 @@ CONFIG_DEFAULT_DEVICE_TREE="mediatek/mt8390-genio-
> 700-evk"
>  CONFIG_TARGET_MT8188=y
>  CONFIG_SYS_LOAD_ADDR=0x4c000000
>  CONFIG_IDENT_STRING="mt8390-evk"
> +# CONFIG_BOARD_INIT is not set
>  CONFIG_CMD_CLK=y
>  CONFIG_CMD_GPT=y
>  CONFIG_CMD_MMC=y
> 

Reviewed-by: Macpaul Lin <macpaul.lin at mediatek.com>

Thanks!
Macpaul Lin


More information about the U-Boot mailing list