From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2DE0CC433F5 for ; Wed, 17 Nov 2021 14:35:17 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 796906138D for ; Wed, 17 Nov 2021 14:35:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 796906138D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D6FC980F4C; Wed, 17 Nov 2021 15:35:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="LVvB2B7u"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 34AB580F4C; Wed, 17 Nov 2021 15:35:09 +0100 (CET) Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CAB5C805F9 for ; Wed, 17 Nov 2021 15:35:04 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michael@amarulasolutions.com Received: by mail-ed1-x52e.google.com with SMTP id r11so12056285edd.9 for ; Wed, 17 Nov 2021 06:35:04 -0800 (PST) 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 :content-transfer-encoding; bh=bPb31CzJDIixNmz46Gf+2HhJGW7YAyz5Si0xqIz/F68=; b=LVvB2B7uMP+Au79zGqoi4eXL2qZiylxn8OQRgpYWrOXXXTEcR9bILojZihAh5hQhPi pY4KKq+V06n3LLsJyaL8HLIBtcHWc1Ah8vDFZ1U4BeCRKHpy2huuBpnExy3UfKyIdrHy puPDpz0MLu2M6dWfoaQcZSzOaABiblB5Pgm2g= 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 :content-transfer-encoding; bh=bPb31CzJDIixNmz46Gf+2HhJGW7YAyz5Si0xqIz/F68=; b=sj4HrVKuP1+HG/fGttKFuNWeQb3turj8m4TCp6CU45LfLJEgwwmwlXuNhO3PM6+XtT TNvvEmXugiEDomZVKyokkRvdOiMNAYiTOrd5uFaGTKvqyywh6ZCV06Ofzk5O+KkNDevZ nmotxHN/UUkREwm+cWidmAFIMmRbvY9XN6X+CxC/b1AQj+baluam/5QZFqk7mh/mGgY2 PhV2/xyxV7BREJljbm17tSmO7bnu8BhIkJgfYLvJSUDDiP7+ECrmgyduJ/RigPnFnnU8 l4o9I/86izBF6TwS+SAWRv2CeSnmKASPIQP0yCME3xQsrzGuvEUi3iEFcIPYi26K5xwQ EVDg== X-Gm-Message-State: AOAM530Is+masTYOak56u9As77rJLRcRB/IbFC0OhMkDeR7/l4MCYcFE l5tsVy3bXU130tlMG5mOxj/mcw== X-Google-Smtp-Source: ABdhPJwczqBKqhDYTb/Y1WFoUvQ8DEOxdgyXPVIcrX5G1j4ubmQny1aLF+ULfW4TQ7UozuI556mpDw== 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 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.35 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean This function is used in nxp u-boot tree. Signed-off-by: Michael Trimarchi --- 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 -- 2.25.1