From patchwork Fri Sep 30 15:43:48 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lei Wen X-Patchwork-Id: 117168 X-Patchwork-Delegate: hs@denx.de 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 86F8CB6F69 for ; Sat, 1 Oct 2011 03:02:00 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 858032864D; Fri, 30 Sep 2011 19:01:58 +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 Vt64f7QcFhsl; Fri, 30 Sep 2011 19:01:58 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7E2AB2863E; Fri, 30 Sep 2011 19:01:56 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4B35B2863E for ; Fri, 30 Sep 2011 19:01:54 +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 AbsyaeKeb6w1 for ; Fri, 30 Sep 2011 19:01:53 +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 na3sys009aog109.obsmtp.com (na3sys009aog109.obsmtp.com [74.125.149.201]) by theia.denx.de (Postfix) with SMTP id D71B72862D for ; Fri, 30 Sep 2011 19:01:51 +0200 (CEST) Received: from MSI-MTA.marvell.com ([65.219.4.132]) by na3sys009aob109.postini.com ([74.125.148.12]) with SMTP ID DSNKToX1/uO3nauK5rNZIQKMmWQVMsHivVH3@postini.com; Fri, 30 Sep 2011 10:01:53 PDT Received: from maili.marvell.com ([10.68.76.51]) by MSI-MTA.marvell.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 30 Sep 2011 08:43:49 -0700 Received: from localhost (unknown [10.38.16.130]) by maili.marvell.com (Postfix) with ESMTP id 869EB8A002 for ; Fri, 30 Sep 2011 08:43:49 -0700 (PDT) From: Lei Wen To: u-boot@lists.denx.de Date: Fri, 30 Sep 2011 08:43:48 -0700 Message-Id: <1317397428-4066-1-git-send-email-leiwen@marvell.com> X-Mailer: git-send-email 1.7.0.4 X-OriginalArrivalTime: 30 Sep 2011 15:43:49.0731 (UTC) FILETIME=[BF83F330:01CC7F87] Subject: [U-Boot] [PATCH] I2C: mv_i2c: fix build issue when enable debug option 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 When DEBUG_I2C is open, the following build issue would shows up. mv_i2c.c: In function 'i2c_transfer': mv_i2c.c:257: error: 'ISR' undeclared (first use in this function) mv_i2c.c:257: error: (Each undeclared identifier is reported only once mv_i2c.c:257: error: for each function it appears in.) Signed-off-by: Lei Wen --- drivers/i2c/mv_i2c.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/i2c/mv_i2c.c b/drivers/i2c/mv_i2c.c index dcbe1ae..8eb30e7 100644 --- a/drivers/i2c/mv_i2c.c +++ b/drivers/i2c/mv_i2c.c @@ -253,7 +253,7 @@ transfer_error_bus_busy: ret = -6; goto i2c_transfer_finish; i2c_transfer_finish: - PRINTD(("i2c_transfer: ISR: 0x%04x\n", ISR)); + PRINTD(("i2c_transfer: ISR: 0x%04x\n", readl(&base->isr))); i2c_reset(); return ret; }