Until now imx8mp_get_boot_source() and imx8mm_get_boot_source() are both the same. There are subtle differences between the SoCs though implemented in subsequent patches. i.MX8MN will be the same as i.MX8MP then, so alias imx8mn_get_boot_source() to imx8mp_get_boot_source() instead of imx8mm_get_boot_source(). Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- arch/arm/mach-imx/boot.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-imx/boot.c b/arch/arm/mach-imx/boot.c index 8c9febb50a..999bd3ab91 100644 --- a/arch/arm/mach-imx/boot.c +++ b/arch/arm/mach-imx/boot.c @@ -678,12 +678,6 @@ void imx8mm_boot_save_loc(void) imx_boot_save_loc(imx8mm_get_boot_source); } -void imx8mn_get_boot_source(enum bootsource *src, int *instance) - __alias(imx8mm_get_boot_source); - -void imx8mn_boot_save_loc(void) - __alias(imx8mm_boot_save_loc); - void imx8mp_get_boot_source(enum bootsource *src, int *instance) { unsigned long addr; @@ -699,3 +693,9 @@ void imx8mp_boot_save_loc(void) { imx_boot_save_loc(imx8mp_get_boot_source); } + +void imx8mn_get_boot_source(enum bootsource *src, int *instance) + __alias(imx8mp_get_boot_source); + +void imx8mn_boot_save_loc(void) + __alias(imx8mp_boot_save_loc); -- 2.30.2