From patchwork Sun Jan 17 10:56:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Ricard X-Patchwork-Id: 569239 X-Patchwork-Delegate: jagannadh.teki@gmail.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 B9B96140662 for ; Sun, 17 Jan 2016 21:57:12 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=NP9oLUVK; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6BA1AA77E0; Sun, 17 Jan 2016 11:57:07 +0100 (CET) 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 I6cls1RsVlnb; Sun, 17 Jan 2016 11:57:07 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BA6C2A77FF; Sun, 17 Jan 2016 11:57:06 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 23ECEA768D for ; Sun, 17 Jan 2016 11:57:02 +0100 (CET) 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 D1rZJkcDT19A for ; Sun, 17 Jan 2016 11:57:02 +0100 (CET) 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-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by theia.denx.de (Postfix) with ESMTPS id 06AC6A758E for ; Sun, 17 Jan 2016 11:56:57 +0100 (CET) Received: by mail-wm0-f68.google.com with SMTP id b14so11124417wmb.1 for ; Sun, 17 Jan 2016 02:56:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ee6X/u1HAviYa8vOQy9ZwVSvkuCO78I02KBvpSh5K4Q=; b=NP9oLUVKzhguKpA+iFTL9v9xo+Vuxpl12WYI1rbBlweoW8T19+WclkxszYBS/tt0B6 eJxzo48hpVwk+i82dWfbR4JkXctp5rwI6JJ+0bSKJokoq+uy7XV/2Sxv4r+lnUsfgnwv dVBrX2Qgj/NYqE4HdFwbo8Uwu7mP6KV4D0M4H5DcopXF1wv8I+bN4wNq3f0KoEs/nQfS EYhDXZHcoBpgUOHpO9O4dtEfcV/2PWkgFTdoN4xyafA3dowIaa1y5/kPuHhv3xFxMd5B 8XMqr30JnVdTLmz1jJnwUZQh0ifMbmRf/EGm2WTxRPAr4Cwi1EcZEMjmX1PsYqcrGa+N ZSIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ee6X/u1HAviYa8vOQy9ZwVSvkuCO78I02KBvpSh5K4Q=; b=ZHUeoy1cnV7JfGEfCb8w+kQysNs1SpEo9uVOJWnidvABT6ACQ0XQ2sfiEmu87VHzqQ 4N0Ol8XL344dMH5oNfhWM934CKmYGKWDcYcjbra0JTVFv/OIGVYb4tYuGDidoZ/F9pLm l7/A54jvFVzYekIcuaGcfvPaWRZz+/OHofOhtnngUp8ThdG8Ma4UnxWyj4VsWRBlZW0C JGlaMxM00pQeIK9/Zx+iTTgnSrYM0hA3dzAkFOsUoimJ4RcB+9ehJUiUJPhvNAUJRwP7 TgjihHiPq9MVIEcYwy1uxWCb9SNaKapvf5VeX6NyQ3fec4xaEplNtPa1WbMOAT9qdWBW KWQg== X-Gm-Message-State: AG10YOR8I4nt9er3Uf1E10f91zD4hhjbt8KR6mLcjNpVTcfReicbXO/gxpS8S7bquGNJYA== X-Received: by 10.28.50.193 with SMTP id y184mr7889414wmy.103.1453028216740; Sun, 17 Jan 2016 02:56:56 -0800 (PST) Received: from localhost.localdomain (ax113-6-78-236-204-66.fbx.proxad.net. [78.236.204.66]) by smtp.gmail.com with ESMTPSA id e2sm12259178wma.1.2016.01.17.02.56.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 17 Jan 2016 02:56:55 -0800 (PST) From: Christophe Ricard X-Google-Original-From: Christophe Ricard To: u-boot@lists.denx.de Date: Sun, 17 Jan 2016 11:56:47 +0100 Message-Id: <1453028210-10139-2-git-send-email-christophe-h.ricard@st.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1453028210-10139-1-git-send-email-christophe-h.ricard@st.com> References: <1453028210-10139-1-git-send-email-christophe-h.ricard@st.com> Cc: Christophe Ricard , Jagan Teki , Benoit Houyere Subject: [U-Boot] [PATCH 1/4] spi: omap3: Remove unused variable irqstatus in omap3_spi_txrx X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 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" Remove unused variable irqstatus in omap3_spi_txrx Signed-off-by: Christophe Ricard Reviewed-by: Simon Glass Reviewed-by: Jagan Teki --- drivers/spi/omap3_spi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/spi/omap3_spi.c b/drivers/spi/omap3_spi.c index 85f9e85..95cdfa3 100644 --- a/drivers/spi/omap3_spi.c +++ b/drivers/spi/omap3_spi.c @@ -336,7 +336,6 @@ int omap3_spi_txrx(struct spi_slave *slave, unsigned int len, struct omap3_spi_slave *ds = to_omap3_spi(slave); ulong start; int chconf = readl(&ds->regs->channel[ds->slave.cs].chconf); - int irqstatus = readl(&ds->regs->irqstatus); int i=0; /*Enable SPI channel*/ @@ -351,7 +350,6 @@ int omap3_spi_txrx(struct spi_slave *slave, unsigned int len, /*Shift in and out 1 byte at time*/ for (i=0; i < len; i++){ /* Write: wait for TX empty (TXS == 1)*/ - irqstatus |= (1<< (4*(ds->slave.bus))); start = get_timer(0); while (!(readl(&ds->regs->channel[ds->slave.cs].chstat) & OMAP3_MCSPI_CHSTAT_TXS)) {