aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-orion5x/gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-orion5x/gpio.c')
-rw-r--r--arch/arm/mach-orion5x/gpio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-orion5x/gpio.c b/arch/arm/mach-orion5x/gpio.c
index fc419868e39..f99d08811e5 100644
--- a/arch/arm/mach-orion5x/gpio.c
+++ b/arch/arm/mach-orion5x/gpio.c
@@ -165,6 +165,8 @@ EXPORT_SYMBOL(gpio_request);
void gpio_free(unsigned pin)
{
+ might_sleep();
+
if (pin >= GPIO_MAX || !test_bit(pin, gpio_valid)) {
pr_debug("%s: invalid GPIO %d\n", __func__, pin);
return;