diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-07-29 06:55:54 +0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-08-17 09:35:42 +0400 |
commit | 7cb6580c0b2690e5c6ac1acd9375fa55d72af289 (patch) | |
tree | ef8cb15817321278bc2111c771a3c99560d6a685 /include/linux/ppp-comp.h | |
parent | 02a6794d57ce54b96b13db80831f35d66e0caf31 (diff) | |
download | linux-7cb6580c0b2690e5c6ac1acd9375fa55d72af289.tar.xz |
gpio: gpio-pch: Use spinlock for register access protection
gpio_chip.can_sleep is 0, but current code uses mutex in pch_gpio_set
pch_gpio_get and pch_gpio_direction_input functions.
Thus those functions are not callable from interrupt context.
This patch converts mutex into spinlock.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/ppp-comp.h')
0 files changed, 0 insertions, 0 deletions