From 9da828c2074e8add2b3f00e7481f8d3b7098de3d Mon Sep 17 00:00:00 2001 From: Michael Trimarchi Date: Wed, 17 Nov 2021 15:34:56 +0100 Subject: [PATCH] imx8m: Drop unused function env_get_offset This function is used in nxp u-boot tree. Signed-off-by: Michael Trimarchi Reviewed-by: Fabio Estevam --- arch/arm/mach-imx/imx8m/soc.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index da106769b1..1a5a391443 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/mach-imx/imx8m/soc.c @@ -1360,19 +1360,4 @@ enum env_location env_get_location(enum env_operation op, int prio) } } -#ifndef ENV_IS_EMBEDDED -long long env_get_offset(long long defautl_offset) -{ - enum boot_device dev = get_boot_device(); - - switch (dev) { - case NAND_BOOT: - return (60 << 20); /* 60MB offset for NAND */ - default: - break; - } - - return defautl_offset; -} -#endif #endif -- 2.39.5