From patchwork Fri Apr 22 23:01:54 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 728581 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3MN0GIj023013 for ; Fri, 22 Apr 2011 23:00:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755269Ab1DVXAJ (ORCPT ); Fri, 22 Apr 2011 19:00:09 -0400 Received: from na3sys009aog117.obsmtp.com ([74.125.149.242]:53590 "EHLO na3sys009aog117.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754267Ab1DVXAI (ORCPT ); Fri, 22 Apr 2011 19:00:08 -0400 Received: from mail-pv0-f169.google.com ([74.125.83.169]) (using TLSv1) by na3sys009aob117.postini.com ([74.125.148.12]) with SMTP ID DSNKTbIIdZbfhsk6aIUNJSmvG/cT7NDqXKMN@postini.com; Fri, 22 Apr 2011 16:00:07 PDT Received: by pvc12 with SMTP id 12so210169pvc.28 for ; Fri, 22 Apr 2011 16:00:05 -0700 (PDT) Received: by 10.142.231.14 with SMTP id d14mr898926wfh.106.1303513205379; Fri, 22 Apr 2011 16:00:05 -0700 (PDT) Received: from localhost (c-24-18-179-55.hsd1.wa.comcast.net [24.18.179.55]) by mx.google.com with ESMTPS id s39sm4423382wfc.16.2011.04.22.16.00.04 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 22 Apr 2011 16:00:04 -0700 (PDT) From: Kevin Hilman To: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: charu@ti.com Subject: [PATCH 02/15] OMAP: GPIO: remove MPUIO handling from _clear_gpio_irqbank() Date: Fri, 22 Apr 2011 16:01:54 -0700 Message-Id: <1303513327-14532-3-git-send-email-khilman@ti.com> X-Mailer: git-send-email 1.7.4 In-Reply-To: <1303513327-14532-1-git-send-email-khilman@ti.com> References: <1303513327-14532-1-git-send-email-khilman@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 22 Apr 2011 23:00:19 +0000 (UTC) Remove the OMAP1 #ifdef and MPUIO special case for _clear_gpio_irqbank() The MPUIOs do not need a register access to ack/clear the IRQ status, since reading the IRQ status clears it. In addition, the MPUIO irq_chip has an empty ack method, so _clear_gpio_irqbank() is never used for MPUIOs. Signed-off-by: Kevin Hilman --- arch/arm/plat-omap/gpio.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index fe6971a..8b5ca6e 100644 --- a/arch/arm/plat-omap/gpio.c +++ b/arch/arm/plat-omap/gpio.c @@ -770,12 +770,6 @@ static void _clear_gpio_irqbank(struct gpio_bank *bank, int gpio_mask) void __iomem *reg = bank->base; switch (bank->method) { -#ifdef CONFIG_ARCH_OMAP1 - case METHOD_MPUIO: - /* MPUIO irqstatus is reset by reading the status register, - * so do nothing here */ - return; -#endif #ifdef CONFIG_ARCH_OMAP15XX case METHOD_GPIO_1510: reg += OMAP1510_GPIO_INT_STATUS;