[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1426785944-17255-9-git-send-email-grygorii.strashko@linaro.org>
Date: Thu, 19 Mar 2015 19:25:44 +0200
From: <grygorii.strashko@...aro.org>
To: Javier Martinez Canillas <javier@...hile0.org>,
Linus Walleij <linus.walleij@...aro.org>,
Alexandre Courbot <gnurou@...il.com>, ssantosh@...nel.org,
Kevin Hilman <khilman@...prootsystems.com>, tony@...mide.com
Cc: linux-omap@...r.kernel.org, linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org,
Grygorii Strashko <grygorii.strashko@...aro.org>
Subject: [RFT OMAP1 PATCH 8/8] gpio: omap: get rid of GPIO_INDEX() macro
From: Grygorii Strashko <grygorii.strashko@...aro.org>
Now OMAP GPIO driver prepared for GPIO_INDEX() macro removing.
Do It ;)
Signed-off-by: Grygorii Strashko <grygorii.strashko@...aro.org>
---
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;
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists