From patchwork Wed Jan 3 14:15:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 855039 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zBXyb5Zjtz9s7c for ; Thu, 4 Jan 2018 01:15:35 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 55D1FC21C8F; Wed, 3 Jan 2018 14:15:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 7C971C21C4F; Wed, 3 Jan 2018 14:15:29 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 010F5C21C2B; Wed, 3 Jan 2018 14:15:27 +0000 (UTC) Received: from mail-yw0-f196.google.com (mail-yw0-f196.google.com [209.85.161.196]) by lists.denx.de (Postfix) with ESMTPS id 6B8F0C21C4F for ; Wed, 3 Jan 2018 14:15:27 +0000 (UTC) Received: by mail-yw0-f196.google.com with SMTP id v187so582136ywc.2 for ; Wed, 03 Jan 2018 06:15:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=g46VoJQuT5D+E75By7q8jCgyeihHjbRp2eZcJSdLkd4=; b=QdJCVIuQzqdi15ulvuk8r5dfbo5XwxP6HWKWi7jQ6kOYV4eC7giHlQMXelsScd8lh2 u1C5Di/wmc3EudRCjMOW4BH+JkQA4rwTsiHWsCHlkNx1lqaArDBlVk1krxzVbYadjMIe wa73zLu1PY7EaE6nr79RTxZMHsEr8SnUNtPo8hV9R0PKFKOHLe1i7p6LwPNFxhisre6h tlIMxtii5398BHENeAyi8/tGp8jSX9BbnDyvLOOGbqNbwLcPkAy13iY697BqBDjhwMwm cOyorGypoA1S7MYTE6vhNLS/zDmxSggXw/koOx6yKSGCu+VZhrR1Q3y3aCzoMN2lsli5 95FQ== X-Gm-Message-State: AKGB3mKLtC0aBn0Z+/1ZimWUWpw1upK022hFZhyQFrQ2r0zsxnso7kHF Oj+W++VlqZDOCqr8I8v4eE7V X-Google-Smtp-Source: ACJfBouZaPVnFqeI2gSBjBY9afsSyDR6xm6rxWFAdRdgYccp1iW+ZkGldUIpm+fFjQ2B71Py1gP9iQ== X-Received: by 10.129.112.78 with SMTP id l75mr1369050ywc.299.1514988926145; Wed, 03 Jan 2018 06:15:26 -0800 (PST) Received: from localhost.localdomain (cpe-65-184-142-68.ec.res.rr.com. [65.184.142.68]) by smtp.gmail.com with ESMTPSA id 142sm406856ywf.97.2018.01.03.06.15.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Jan 2018 06:15:25 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Date: Wed, 3 Jan 2018 09:15:22 -0500 Message-Id: <1514988922-23060-1-git-send-email-trini@konsulko.com> X-Mailer: git-send-email 2.7.4 Cc: Fabio Estevam Subject: [U-Boot] [PATCH] imx: ventana: Rework CONFIG_CMD_EECONFIG code to not be included in SPL X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The command can only be used from full U-Boot, so do not build it into SPL. Cc: Stefano Babic Cc: Fabio Estevam Cc: Tim Harvey Signed-off-by: Tom Rini Acked-by: Tim Harvey Reviewed-by: Fabio Estevam --- board/gateworks/gw_ventana/eeprom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/gateworks/gw_ventana/eeprom.c b/board/gateworks/gw_ventana/eeprom.c index 2c07a84fffcb..a435dd9fb7b7 100644 --- a/board/gateworks/gw_ventana/eeprom.c +++ b/board/gateworks/gw_ventana/eeprom.c @@ -119,7 +119,7 @@ struct ventana_eeprom_config econfig[] = { { /* Sentinel */ } }; -#ifdef CONFIG_CMD_EECONFIG +#if defined(CONFIG_CMD_EECONFIG) && !defined(CONFIG_SPL_BUILD) static struct ventana_eeprom_config *get_config(const char *name) { struct ventana_eeprom_config *cfg = econfig; @@ -135,7 +135,7 @@ static struct ventana_eeprom_config *get_config(const char *name) static u8 econfig_bytes[sizeof(ventana_info.config)]; static int econfig_init = -1; -int do_econfig(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +static int do_econfig(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { struct ventana_eeprom_config *cfg; struct ventana_board_info *info = &ventana_info;