mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
Blackfin arch: explicit add a might sleep to gpio_free
According to the documentation gpio_free should only be called from task context only. To make this more explicit add a might sleep to all implementations. This patch changes the gpio_free implementations for the blackfin architecture. Signed-off-by: Uwe Kleine-Koenig <[email protected]> Cc: David Brownell <[email protected]> Acked-by: Bryan Wu <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
This commit is contained in:
parent
2f95d5bd84
commit
45c4f2a0b6
1 changed files with 2 additions and 0 deletions
|
|
@ -1081,6 +1081,8 @@ void bfin_gpio_free(unsigned gpio)
|
|||
if (check_gpio(gpio) < 0)
|
||||
return;
|
||||
|
||||
might_sleep();
|
||||
|
||||
local_irq_save_hw(flags);
|
||||
|
||||
if (unlikely(!(reserved_gpio_map[gpio_bank(gpio)] & gpio_bit(gpio)))) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue