diff options
author | Grygorii Strashko <grygorii.strashko@linaro.org> | 2015-05-22 16:35:52 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-06-01 16:53:54 +0200 |
commit | 121dcb760426ca67ee90a8b2db6a75eee010f8e3 (patch) | |
tree | 043416955bff282d15aafd7118a2fc89c718b4fe /drivers/gpio/gpio-pca953x.c | |
parent | gpio: omap: rework omap_gpio_request to touch only gpio specific registers (diff) | |
download | linux-121dcb760426ca67ee90a8b2db6a75eee010f8e3.tar.xz linux-121dcb760426ca67ee90a8b2db6a75eee010f8e3.zip |
gpio: omap: rework omap_gpio_irq_startup to handle current pin state properly
The omap_gpio_irq_startup() can be called at time when:
- corresponding GPIO has been requested already and in this case
it has to be configured as input already. If not - return with -EINVAL
and do not try to re-configure it as it could be unsafe.
- corresponding GPIO is free: reconfigure GPIO as input.
In addition, call omap_enable_gpio_module directly 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>
Diffstat (limited to 'drivers/gpio/gpio-pca953x.c')
0 files changed, 0 insertions, 0 deletions