From patchwork Wed Oct 3 02:49:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 188698 X-Patchwork-Delegate: albert.aribaud@free.fr 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 A507E2C008E for ; Wed, 3 Oct 2012 12:49:39 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D6B9628090; Wed, 3 Oct 2012 04:49:37 +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 HS5hU2tXWXrM; Wed, 3 Oct 2012 04:49:37 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 79E1D28094; Wed, 3 Oct 2012 04:49:36 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2145C28094 for ; Wed, 3 Oct 2012 04:49:32 +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 1HdegnrPwHKl for ; Wed, 3 Oct 2012 04:49:31 +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-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by theia.denx.de (Postfix) with ESMTPS id BBC7828090 for ; Wed, 3 Oct 2012 04:49:28 +0200 (CEST) Received: by padfb11 with SMTP id fb11so5977542pad.3 for ; Tue, 02 Oct 2012 19:49:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=Bar4IzJc5iQEOmucWA4GWQ37WjoU2oBegOiDXUWN4nk=; b=dDSS6QyYzXLLRW/cAj2jU1mJMu4CAM/KJQtjiu31KTIt+eAVNohEW7b7C6NSb6qpkw UCw50fsEhcyOxCuIk5GR1Rj5oM8/LKPloC1dYRrCUfN743ncL77hZlC5Vyg2NyuVFyDQ /E4oNWXs3DgmZU08K2EXDOSkSzfZSaYFN0FLz09SOGbqKkjXceGje4gqjANy+7FRI9Wv Od9NqKrHa4MajR3RRn5vxhIYP3xcDknbfy2IAV8Nq3nVCGkT2YwkftiI3EbqkHmTl5d1 z511loTDRN0qeUdQ8Blhso9vb3rPhCjNjZHXm71EK2+3fuhW17KtHJDt6FrCvEPH6dwC LINw== Received: by 10.68.138.170 with SMTP id qr10mr9239952pbb.53.1349232567327; Tue, 02 Oct 2012 19:49:27 -0700 (PDT) Received: from xps-iwamatsu.renesas.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPS id uq5sm1821718pbc.56.2012.10.02.19.49.25 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 02 Oct 2012 19:49:26 -0700 (PDT) From: Nobuhiro Iwamatsu To: hs@denx.de Date: Wed, 3 Oct 2012 11:49:18 +0900 Message-Id: <1349232558-21988-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQlPRw3TO3cCH49Ow0E/C9TejJCh2dxw8nKfgcyfTLB8mc7XXrHkc3ygnVzfkIGBa+Y/Qwbz Cc: Nobuhiro Iwamatsu , u-boot@lists.denx.de Subject: [U-Boot] [PATCH] i2c: sh: Remove irq_wait function 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 irq_wait function is not referred to from anywhere. Reported-by: Albert ARIBAUD Signed-off-by: Nobuhiro Iwamatsu --- drivers/i2c/sh_i2c.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/i2c/sh_i2c.c b/drivers/i2c/sh_i2c.c index fd8cb92..3147123 100644 --- a/drivers/i2c/sh_i2c.c +++ b/drivers/i2c/sh_i2c.c @@ -52,22 +52,6 @@ static u8 iccl, icch; #define IRQ_WAIT 1000 -static void irq_wait(struct sh_i2c *base) -{ - int i; - u8 status; - - for (i = 0 ; i < IRQ_WAIT ; i++) { - status = readb(&base->icsr); - if (SH_IC_WAIT & status) - break; - - udelay(10); - } - - writeb(status & ~SH_IC_WAIT, &base->icsr); -} - static void irq_dte(struct sh_i2c *base) { int i;