From patchwork Wed Nov 17 14:34:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 1776 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 0B1973F157 for ; Wed, 17 Nov 2021 15:35:06 +0100 (CET) Received: by mail-ed1-f70.google.com with SMTP id l15-20020a056402124f00b003e57269ab87sf2308848edw.6 for ; Wed, 17 Nov 2021 06:35:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1637159705; cv=pass; d=google.com; s=arc-20160816; b=XNh2ZFy1vH4ibjnZNIg+R/PXC3mUoxQ1UijsoyEYh+zPFlfRtz2cR4eGZEQZdbyQBv uuDh9OZv1jjJrRO22SqE1k0+oD8SFXUe0iOw1kM7PKWlQA4lxahjGtIFTPxUEB6CFhkw zjTjO6E6cF+fvDazUDSDmdTtxQyC4ZrK1GZApU2yatEpkYP39CmL6p+kjAKwIpNJAN/C csvhvgsFpSuppX6uMCq5ffaJKpAZ8/CXzfAbDbCm03YFcEDxqIYuFJdCwdi1fGfm6Jfl 3a0FQCsgAM7tPElQpXWaWrjtVarDdK69tXvqCdgFwXvdfdSku4XlgTCRhlmJ/kxbYUaQ gQwg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=0SWhplXkHnxulpGwhqS6VZEZGXd8CkTBQ/StbS+YSX4=; b=NJAeOPPFTAqekikJv/XgtNC9YdtIGuclzt3+iF4keveELbkk5QtSsL9yZrYPO2vzK7 MkQ0SD5RaPjvjBlyzncbOZR61Ap9GiHEwBPdOSYrGHi8m+7qaunS7L3ERs9mKKe8vyOV wKXs3QcGCMUARHuHnsbJNPWZTSWkd94K5XI348Rk50mc+BCMZj2yAMH0ZI1hAe/Zo92K EQnURr7Qps9jhHarQ8e9JaBwlxKsZVEBeOQP8Bc+9mob5PZO/92kqGNSyG5YZWyJQUck 7KKWs2mSY6hKokpoqWk4vTr+CeehGMzbqbExbbDBuz4iEcAqLUTA7NO3n4GU0eBi1MBs 4ECg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LVvB2B7u; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=0SWhplXkHnxulpGwhqS6VZEZGXd8CkTBQ/StbS+YSX4=; b=JnwepX51vvfkL4L+m0COaLmKAm3VMlzS2PD5MwL4//s2ZocX/iP6cr2+yej3Ip+4EF qeuu0TYqe2GFCr+Dien3Wv46r65vVqNoTDT2nFNo/+Vin5tUwsxRbFAsLYLYEYpcVbVd ftc3n3XlFeLnytdOvzcflqTk/dxX7jaKqAjxY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=0SWhplXkHnxulpGwhqS6VZEZGXd8CkTBQ/StbS+YSX4=; b=HwrbCVexKvhGD48Fmz8AldLZ+QD4jFliiZlaokAmgWXdh/j3HfwEB+4L2dK2jvII8K YqZDCD9iQKMTaa6UnwQac+XKww7+8O9FItqCBb43FvrRHHWf2gLZyoslGIV1NsJoCjKh 8KvzojYVJFgRSyLsNotw8F+pCFhJdUQeRYv1vNsSLvvwYoT5fZs3nBTzFivjq0pC+AWx l8wHFgYRwNO6l9nAVKoV65EBal2/a6wx7aSjEqadR+t0Q5KcwPDl1EBoRALkvENDd17e CfwVWDqOHLonNAYYeCZpq9Hc7TCGF5RPPDmPD9T9GFKRmVPtlisAZGm6S1E2Vzv/3VoH yJ+w== X-Gm-Message-State: AOAM531NNEWfA55eM+/WIk21VMKoGyy9VZHHgLnmVbNIDTY8LCkusNBa PGKvy5Mmleby8LwfuXLJ0v2uBCt6 X-Google-Smtp-Source: ABdhPJxih5GJvmwZ/adP+eS48Q69/UcXD+O4D9njy0lSFhW+q3EZ6VE9RML6Bs1RCnHgVocdO6DErg== X-Received: by 2002:a17:906:730f:: with SMTP id di15mr22604069ejc.22.1637159705811; Wed, 17 Nov 2021 06:35:05 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:907:3e9d:: with SMTP id hs29ls22578ejc.2.gmail; Wed, 17 Nov 2021 06:35:04 -0800 (PST) X-Received: by 2002:a17:906:f74a:: with SMTP id jp10mr22134511ejb.358.1637159704694; Wed, 17 Nov 2021 06:35:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1637159704; cv=none; d=google.com; s=arc-20160816; b=rkDGVVEnRnJpr2x+wNzL4fN8dLcpFa1R+HsxiwDKflUkZp0ZCl9uVvOJszTcvFx5xj aWFP4+y4laOUc1sH71fC6uHN3kMwyjluF/P+3XgzcULIKlfc47xtwqr1O/VMxPo9vzX7 1rhbu94UA0hoZZwjBeuGVie/qYkzJRVpSmhGBBdhcdfC6e6u4Iir2wR1DWRGEBHIvxDB rU4BDp2xOlj7Etmyx04BJljVuXas/l09Abo4DRDauraqNAsStyGVijCppn3BkR73ePs8 FHPh5Yu1rDzILN0fuBpN+h/E7BiCxTkVryUHCUXX61xJPJdL++R2tDacNAmWWo/n9Ec6 HLYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=bPb31CzJDIixNmz46Gf+2HhJGW7YAyz5Si0xqIz/F68=; b=PPuyeB91ApEnYh3eUSdIGNTzDpo/06p+ROGvWw/VV6nmW+f2XraBWF3PcaHQ/GFYKx rHQMOccA53f/wJ7M+sNdx0qKxB7ANfyY4aGcGdXLPz5dyLOvQtNEr5zo0Ww8uVSOW7S+ eJXp+qWXGR9SnwbclKaL6j8YnoWWiFAKUxYJKesXXezOngu9/4M+4MgxdVeq2mFrWbnA lHnC3yykJ6f72+8j4gCRazYUj4NvNXolPOz88aDc7pcnh3frwRzWTVJ6oTPjKkoMaL65 N44ZhMyi/s17H3lcwuAUFSBWDu44FLpxyvnTZqvO9Dh/pgYP27Hm6pb2e8j3TLUkTRuZ 8/qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LVvB2B7u; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id ne19sor16007ejc.22.2021.11.17.06.35.04 for (Google Transport Security); Wed, 17 Nov 2021 06:35:04 -0800 (PST) Received-SPF: pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:907:6e0b:: with SMTP id sd11mr21774498ejc.134.1637159704251; Wed, 17 Nov 2021 06:35:04 -0800 (PST) Received: from localhost.localdomain ([62.18.232.16]) by smtp.gmail.com with ESMTPSA id k16sm9705864edq.77.2021.11.17.06.35.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Nov 2021 06:35:03 -0800 (PST) From: Michael Trimarchi To: Ye Li , Stefano Babic , Fabio Estevam Cc: u-boot@lists.denx.de, Ariel D'Alessandro , linux-amarula@amarulasolutions.com, Anthony Brandon Subject: [PATCH] imx8m: Drop unused function env_get_offset Date: Wed, 17 Nov 2021 15:34:56 +0100 Message-Id: <20211117143456.34441-1-michael@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: michael@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LVvB2B7u; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 863508776d..e75d2fa255 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/mach-imx/imx8m/soc.c @@ -1352,19 +1352,4 @@ enum env_location env_get_location(enum env_operation op, int prio) return env_loc; } -#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