From patchwork Mon Mar 23 12:18:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Grygorii.Strashko@linaro.org" X-Patchwork-Id: 6071761 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 662F69F2A9 for ; Mon, 23 Mar 2015 12:19:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 929A3201F2 for ; Mon, 23 Mar 2015 12:19:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BAA062020F for ; Mon, 23 Mar 2015 12:19:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752508AbbCWMSx (ORCPT ); Mon, 23 Mar 2015 08:18:53 -0400 Received: from mail-lb0-f181.google.com ([209.85.217.181]:35410 "EHLO mail-lb0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752207AbbCWMSp (ORCPT ); Mon, 23 Mar 2015 08:18:45 -0400 Received: by lbcgn8 with SMTP id gn8so116699313lbc.2 for ; Mon, 23 Mar 2015 05:18:44 -0700 (PDT) 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=NExpFtjWOKKuhpIJd0sOF0I+mv5g20VfzFFouPx1qNE=; b=GHkM5YNnLEvuSALdc48jhx52C15kyef6enL5iJMmGgzQNteOnEyWyOLTjKRXoid2Sa f/xTj8GteZMMT4iZwaN0GwGmLZKafL+tP943Oc4SaRQOv0mlJaPOyXD9VPcWljmc7IQQ Xgo8i3Dk4Rd47bDlgrbg/0vqj6YGGy5cnGZ3ummZsWDp7zp6bNvubyt89P6Rl1SiC+lu 3HYV+nqys5nfz8Xajrd7/5Yfv8bOOotUOOPjq+Em4fhTXBsg+i8wfQ/VVwmTKFkvFzHB upB1oj8vOj99Ow1xqAXCxL8YuIEgBZUaWqtZ1WdJ2/tMXDFwQc9bLaQ8jDUXuNlcxkSE FBPQ== X-Gm-Message-State: ALoCoQli/rOoQg+0auh+yL4O+E76pAz6yae4P9edqWOPj6P8zSaruDxMIjspnku1aa5vuqGgv4Jt X-Received: by 10.152.245.41 with SMTP id xl9mr66068852lac.24.1427113124281; Mon, 23 Mar 2015 05:18:44 -0700 (PDT) Received: from localhost ([195.238.92.128]) by mx.google.com with ESMTPSA id yt9sm140659lab.44.2015.03.23.05.18.43 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 23 Mar 2015 05:18:43 -0700 (PDT) From: To: Javier Martinez Canillas , Linus Walleij , Alexandre Courbot , ssantosh@kernel.org, Kevin Hilman , tony@atomide.com Cc: linux-omap@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Grygorii Strashko Subject: [PATCH v2 8/8] gpio: omap: get rid of GPIO_INDEX() macro Date: Mon, 23 Mar 2015 14:18:30 +0200 Message-Id: <1427113110-20813-9-git-send-email-grygorii.strashko@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427113110-20813-1-git-send-email-grygorii.strashko@linaro.org> References: <1427113110-20813-1-git-send-email-grygorii.strashko@linaro.org> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Grygorii Strashko Now OMAP GPIO driver prepared for GPIO_INDEX() macro removing. Do It ;) Tested-by: Tony Lindgren Tested-by: Aaro Koskinen Acked-by: Santosh Shilimkar Acked-by: Javier Martinez Canillas Signed-off-by: Grygorii Strashko --- drivers/gpio/gpio-omap.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index 615e950..cd1d5bf 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c @@ -81,7 +81,6 @@ struct gpio_bank { struct omap_gpio_reg_offs *regs; }; -#define GPIO_INDEX(bank, gpio) (gpio % bank->width) #define GPIO_MOD_CTRL_BIT BIT(0) #define BANK_USED(bank) (bank->mod_usage || bank->irq_usage) @@ -492,14 +491,6 @@ static int omap_gpio_irq_type(struct irq_data *d, unsigned type) if (!BANK_USED(bank)) pm_runtime_get_sync(bank->dev); -#ifdef CONFIG_ARCH_OMAP1 - if (d->irq > IH_MPUIO_BASE) { - unsigned gpio = 0; - gpio = OMAP_MPUIO(d->irq - IH_MPUIO_BASE); - offset = GPIO_INDEX(bank, gpio); - } -#endif - if (type & ~IRQ_TYPE_SENSE_MASK) return -EINVAL;