diff options
author | Tarun Kanti DebBarma <tarun.kanti@ti.com> | 2011-11-25 15:27:37 +0530 |
---|---|---|
committer | Ziyann <jaraidaniel@gmail.com> | 2014-10-01 12:59:05 +0200 |
commit | ef5ebfb4c61f48b101baef23bd975d4932b2431b (patch) | |
tree | 838153f4a4e5d3bb98d0387edfdb2743677b5458 /drivers/gpio | |
parent | 63c5237cabefe1101e76f05e57ba7d987c24641e (diff) | |
download | kernel_samsung_tuna-ef5ebfb4c61f48b101baef23bd975d4932b2431b.zip kernel_samsung_tuna-ef5ebfb4c61f48b101baef23bd975d4932b2431b.tar.gz kernel_samsung_tuna-ef5ebfb4c61f48b101baef23bd975d4932b2431b.tar.bz2 |
gpio/omap: fix _set_gpio_irqenable implementation
This function should be capable of both enabling and disabling interrupts
based upon the *enable* parameter. Right now the function only enables
the interrupt and *enable* is not used at all. So add the interrupt
disable capability also using the parameter.
Change-Id: I9b902184cabe8990205c9d488d261d79a84b94d4
Signed-off-by: Tarun Kanti DebBarma <tarun.kanti@ti.com>
Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-omap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index 203a813..f28609d 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c @@ -489,7 +489,10 @@ static void _disable_gpio_irqbank(struct gpio_bank *bank, int gpio_mask) static inline void _set_gpio_irqenable(struct gpio_bank *bank, int gpio, int enable) { - _enable_gpio_irqbank(bank, GPIO_BIT(bank, gpio)); + if (enable) + _enable_gpio_irqbank(bank, GPIO_BIT(bank, gpio)); + else + _disable_gpio_irqbank(bank, GPIO_BIT(bank, gpio)); } /* |