Browse Source

gpio: f7188x: set can_sleep attribute

Since request_muxed_region() is used to synchronize access on the
Super-I/O controller, then the can_sleep attribute must be set for
the f7188x GPIO chips.

Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Simon Guinot 11 years ago
parent
commit
aeccc1b4a9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/gpio/gpio-f7188x.c

+ 1 - 0
drivers/gpio/gpio-f7188x.c

@@ -135,6 +135,7 @@ static void f7188x_gpio_set(struct gpio_chip *chip, unsigned offset, int value);
 			.set              = f7188x_gpio_set,		\
 			.set              = f7188x_gpio_set,		\
 			.base             = _base,			\
 			.base             = _base,			\
 			.ngpio            = _ngpio,			\
 			.ngpio            = _ngpio,			\
+			.can_sleep        = true,			\
 		},							\
 		},							\
 		.regbase = _regbase,					\
 		.regbase = _regbase,					\
 	}
 	}