From patchwork Thu Apr 25 20:46:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 239596 X-Patchwork-Delegate: trini@ti.com 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 C4F9B2C00C4 for ; Fri, 26 Apr 2013 06:47:07 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 857FD4A0A6; Thu, 25 Apr 2013 22:47:06 +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 TPZoai+4hAXM; Thu, 25 Apr 2013 22:47:06 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 170754A0A8; Thu, 25 Apr 2013 22:47:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 415104A0A8 for ; Thu, 25 Apr 2013 22:47:03 +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 1usQ65alQx04 for ; Thu, 25 Apr 2013 22:47:02 +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-yh0-f41.google.com (mail-yh0-f41.google.com [209.85.213.41]) by theia.denx.de (Postfix) with ESMTPS id 6EE204A0A6 for ; Thu, 25 Apr 2013 22:47:00 +0200 (CEST) Received: by mail-yh0-f41.google.com with SMTP id i57so340830yha.28 for ; Thu, 25 Apr 2013 13:46:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:subject:date:message-id:x-mailer; bh=eXoRro9XDRu3kgPExne8uRPCBu/ss0v/ogKKtYQtnVI=; b=Tlv7J+t7+3NemJVeLAE0p5rw7kXhwfbKnfZjI2IsnhOu5b76FhrTA/CTUYPTMagC/7 1AvORnu/y1lniZxXdBAjBomDH7QvzzvAqY29OJ4gfPNbEp4od+AVGHt2Gf0BAG0LxhKo O0KWW6K2MT9Hd6LH5Yypxh9E/4X19HyzrHongDNSgnn2Lh5si9X27USVK6u515QuFhy4 4ExxyGElfABYs5ALh6sWMIF2QUbfraRLW61Er+py5kw7ljnaaL+vGgNsgLYgUTDJZ9eZ k0egDxHOXTwxK+GuYL6FM3fv6JdKRjoLVZ/gCMOfC1y1mWASwEb5pLvqvgUYkmJJ+vPj a9VQ== X-Received: by 10.236.97.7 with SMTP id s7mr22072460yhf.158.1366922819772; Thu, 25 Apr 2013 13:46:59 -0700 (PDT) Received: from localhost.localdomain (cpe-065-184-250-089.ec.res.rr.com. [65.184.250.89]) by mx.google.com with ESMTPSA id k49sm11823905yhi.14.2013.04.25.13.46.58 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 25 Apr 2013 13:46:58 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Date: Thu, 25 Apr 2013 16:46:56 -0400 Message-Id: <1366922816-22182-1-git-send-email-trini@ti.com> X-Mailer: git-send-email 1.7.9.5 Subject: [U-Boot] [PATCH] am33xx: Fix warning with CONFIG_DISPLAY_CPUINFO X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 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 The arm_freq and ddr_freq variables are unused, so remove. Fixup whitespace slightly while in here. Signed-off-by: Tom Rini Reviewed-by: Peter Korsgaard --- arch/arm/cpu/armv7/am33xx/sys_info.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/arm/cpu/armv7/am33xx/sys_info.c b/arch/arm/cpu/armv7/am33xx/sys_info.c index 5fd8b47..ac049ac 100644 --- a/arch/arm/cpu/armv7/am33xx/sys_info.c +++ b/arch/arm/cpu/armv7/am33xx/sys_info.c @@ -92,7 +92,6 @@ u32 get_sysboot_value(void) int print_cpuinfo(void) { char *cpu_s, *sec_s; - int arm_freq, ddr_freq; switch (get_cpu_type()) { case AM335X: @@ -123,10 +122,7 @@ int print_cpuinfo(void) sec_s = "?"; } - printf("%s-%s rev %d\n", - cpu_s, sec_s, get_cpu_rev()); - - /* TODO: Print ARM and DDR frequencies */ + printf("%s-%s rev %d\n", cpu_s, sec_s, get_cpu_rev()); return 0; }