From patchwork Mon Sep 5 15:26:27 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Denk X-Patchwork-Id: 113382 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 7BBF1B6F7D for ; Tue, 6 Sep 2011 01:26:40 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 360822813C; Mon, 5 Sep 2011 17:26:39 +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 pQl0TD4cSOe2; Mon, 5 Sep 2011 17:26:39 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5B4C5280CA; Mon, 5 Sep 2011 17:26:37 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BAF2A280CA for ; Mon, 5 Sep 2011 17:26:35 +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 C7sVduI7lkQr for ; Mon, 5 Sep 2011 17:26:33 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by theia.denx.de (Postfix) with ESMTP id 7EEF7280C2 for ; Mon, 5 Sep 2011 17:26:32 +0200 (CEST) Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id B56E91C01F29; Mon, 5 Sep 2011 17:26:31 +0200 (CEST) X-Auth-Info: 2+NSJ+aoAnQQVWUdV0ssaz4CvB3us290BUH8wg8yuks= Received: from diddl.denx.de (host-80-81-18-216.customer.m-online.net [80.81.18.216]) by smtp-auth.mnet-online.de (Postfix) with ESMTPA id 6FE1A1C0007E; Mon, 5 Sep 2011 17:26:31 +0200 (CEST) Received: from gemini.denx.de (gemini.denx.de [10.0.0.2]) by diddl.denx.de (Postfix) with ESMTP id 4A882C00E410; Mon, 5 Sep 2011 17:26:31 +0200 (CEST) Received: by gemini.denx.de (Postfix, from userid 500) id 1C417158D104; Mon, 5 Sep 2011 17:26:31 +0200 (CEST) From: Wolfgang Denk To: u-boot@lists.denx.de Date: Mon, 5 Sep 2011 17:26:27 +0200 Message-Id: <1315236387-27245-1-git-send-email-wd@denx.de> X-Mailer: git-send-email 1.7.6 Cc: Sudhakar Rajashekhara Subject: [U-Boot] [PATCH] da8xxevm: Fix warning: unused variable 'val' 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 Signed-off-by: Wolfgang Denk Cc: Albert ARIBAUD Cc: Sandeep Paulraj Cc: Sudhakar Rajashekhara --- board/davinci/da8xxevm/da850evm.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/board/davinci/da8xxevm/da850evm.c b/board/davinci/da8xxevm/da850evm.c index 2f950e7..46924d3 100644 --- a/board/davinci/da8xxevm/da850evm.c +++ b/board/davinci/da8xxevm/da850evm.c @@ -280,12 +280,14 @@ u32 get_board_rev(void) int board_init(void) { +#ifdef CONFIG_USE_NOR u32 val; +#endif + #ifndef CONFIG_USE_IRQ irq_init(); #endif - #ifdef CONFIG_NAND_DAVINCI /* * NAND CS setup - cycle counts based on da850evm NAND timings in the