From patchwork Tue May 3 12:15:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Schocher X-Patchwork-Id: 93779 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 37BFCB6F10 for ; Tue, 3 May 2011 22:15:14 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E535A280FF; Tue, 3 May 2011 14:15:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LPNEleSVU2ZZ; Tue, 3 May 2011 14:15:10 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5E7C7280F8; Tue, 3 May 2011 14:15:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 43D2F280F8 for ; Tue, 3 May 2011 14:15:07 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uxeZ+zgHFCUL for ; Tue, 3 May 2011 14:15:05 +0200 (CEST) X-policyd-weight: IN_SBL_XBL_SPAMHAUS=4.35 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from pollux.denx.de (p57941208.dip.t-dialin.net [87.148.18.8]) by theia.denx.de (Postfix) with ESMTP id 067B4280F3 for ; Tue, 3 May 2011 14:15:03 +0200 (CEST) Received: by pollux.denx.de (Postfix, from userid 515) id B3D33180189E6; Tue, 3 May 2011 14:15:02 +0200 (CEST) From: Heiko Schocher To: u-boot@lists.denx.de Date: Tue, 3 May 2011 14:15:01 +0200 Message-Id: <1304424901-17089-1-git-send-email-hs@denx.de> X-Mailer: git-send-email 1.7.4.4 In-Reply-To: References: Cc: Valentin Longchamp , Heiko Schocher , Holger Brunck Subject: [U-Boot] [PATCH v2 1/2] cramfs: fix bug in using CONFIG_CRAMFS_CMDLINE X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de do not define own flash_info variable, instead use the flash_info variable defined in your flash driver. Signed-off-by: Heiko Schocher cc: Wolfgang Denk cc: Detlev Zundel cc: Valentin Longchamp cc: Holger Brunck Signed-off-by: Valentin Longchamp --- changes for v2: - added comments from Wolfgang Denk: - new patch in this version - no ifndef around include needed common/cmd_cramfs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/cmd_cramfs.c b/common/cmd_cramfs.c index 8c86dc5..9060ecc 100644 --- a/common/cmd_cramfs.c +++ b/common/cmd_cramfs.c @@ -43,7 +43,7 @@ #endif #ifdef CONFIG_CRAMFS_CMDLINE -flash_info_t flash_info[1]; +#include #ifndef CONFIG_CMD_JFFS2 #include