From patchwork Fri May 20 15:14:45 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 803912 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 p4KFFBIS021123 for ; Fri, 20 May 2011 15:15:11 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933424Ab1ETPPK (ORCPT ); Fri, 20 May 2011 11:15:10 -0400 Received: from na3sys009aog116.obsmtp.com ([74.125.149.240]:36852 "EHLO na3sys009aog116.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933408Ab1ETPPI (ORCPT ); Fri, 20 May 2011 11:15:08 -0400 Received: from mail-wy0-f177.google.com ([74.125.82.177]) (using TLSv1) by na3sys009aob116.postini.com ([74.125.148.12]) with SMTP ID DSNKTdaFe8vWRqIdlLan0pIYzvuASeg9b8TX@postini.com; Fri, 20 May 2011 08:15:08 PDT Received: by mail-wy0-f177.google.com with SMTP id 28so3403769wyb.8 for ; Fri, 20 May 2011 08:15:07 -0700 (PDT) Received: by 10.216.230.213 with SMTP id j63mr727132weq.20.1305904507383; Fri, 20 May 2011 08:15:07 -0700 (PDT) Received: from localhost ([192.91.60.233]) by mx.google.com with ESMTPS id o1sm1899851wej.32.2011.05.20.08.15.05 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 20 May 2011 08:15:06 -0700 (PDT) From: Kevin Hilman To: linux-omap@vger.kernel.org, Grant Likely , Linus Walleij Cc: linux-arm-kernel@lists.infradead.org Subject: [PATCH 02/14] GPIO: OMAP: remove MPUIO handling from _clear_gpio_irqbank() Date: Fri, 20 May 2011 17:14:45 +0200 Message-Id: <1305904497-26013-3-git-send-email-khilman@ti.com> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1305904497-26013-1-git-send-email-khilman@ti.com> References: <1305904497-26013-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, 20 May 2011 15:15:11 +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 --- drivers/gpio/gpio_omap.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/drivers/gpio/gpio_omap.c b/drivers/gpio/gpio_omap.c index b414644..6fcee66 100644 --- a/drivers/gpio/gpio_omap.c +++ b/drivers/gpio/gpio_omap.c @@ -665,12 +665,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;