diff options
author | Grygorii Strashko <grygorii.strashko@linaro.org> | 2015-03-23 08:18:30 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-03-27 06:08:51 -0400 |
commit | 17d33a450a776c0ce6c3659e1154396dc1eecba8 (patch) | |
tree | 01c28abbed739994dd167568775784a10780b2c3 /drivers/gpio/gpio-omap.c | |
parent | ea5fbe8dea85056b028184459ad86d76f5ceeca4 (diff) |
gpio: omap: get rid of GPIO_INDEX() macro
Now OMAP GPIO driver prepared for GPIO_INDEX() macro removing.
Do It ;)
Tested-by: Tony Lindgren <tony@atomide.com>
Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Acked-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Grygorii Strashko <grygorii.strashko@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-omap.c')
-rw-r--r-- | drivers/gpio/gpio-omap.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index 615e9507de15..cd1d5bf48f36 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c | |||
@@ -81,7 +81,6 @@ struct gpio_bank { | |||
81 | struct omap_gpio_reg_offs *regs; | 81 | struct omap_gpio_reg_offs *regs; |
82 | }; | 82 | }; |
83 | 83 | ||
84 | #define GPIO_INDEX(bank, gpio) (gpio % bank->width) | ||
85 | #define GPIO_MOD_CTRL_BIT BIT(0) | 84 | #define GPIO_MOD_CTRL_BIT BIT(0) |
86 | 85 | ||
87 | #define BANK_USED(bank) (bank->mod_usage || bank->irq_usage) | 86 | #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) | |||
492 | if (!BANK_USED(bank)) | 491 | if (!BANK_USED(bank)) |
493 | pm_runtime_get_sync(bank->dev); | 492 | pm_runtime_get_sync(bank->dev); |
494 | 493 | ||
495 | #ifdef CONFIG_ARCH_OMAP1 | ||
496 | if (d->irq > IH_MPUIO_BASE) { | ||
497 | unsigned gpio = 0; | ||
498 | gpio = OMAP_MPUIO(d->irq - IH_MPUIO_BASE); | ||
499 | offset = GPIO_INDEX(bank, gpio); | ||
500 | } | ||
501 | #endif | ||
502 | |||
503 | if (type & ~IRQ_TYPE_SENSE_MASK) | 494 | if (type & ~IRQ_TYPE_SENSE_MASK) |
504 | return -EINVAL; | 495 | return -EINVAL; |
505 | 496 | ||