]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: omap: rework omap_gpio_request to touch only gpio specific registers
authorGrygorii Strashko <grygorii.strashko@linaro.org>
Fri, 22 May 2015 14:35:51 +0000 (17:35 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 1 Jun 2015 14:53:50 +0000 (16:53 +0200)
commitcfa12e98e5ca994bbc7089cf572e816fcdd9ff09
treea73fb7a6c7cf9db497393b2634f294f277497449
parentd5f10b413f94261842c01279d2ae55fc2a060f22
gpio: omap: rework omap_gpio_request to touch only gpio specific registers

The GPIO Chip and GPIO IRQ Chip functionality are essentially orthogonal,
so GPIO Chip implementation shouldn't touch GPIO IRQ specific registers
and vise versa.

Hence, rework omap_gpio_request:
- don't reset GPIO IRQ triggering type to IRQ_TYPE_NONE, because
  GPIO irqchip should be responsible for that;
- call directly omap_enable_gpio_module as all needed checks are already
  present inside it.

Signed-off-by: Grygorii Strashko <grygorii.strashko@linaro.org>
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-omap.c