From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Guinot Subject: [PATCH] gpio: f7188x: set can_sleep attribute Date: Mon, 23 Dec 2013 14:34:18 +0100 Message-ID: <1387805658-13540-1-git-send-email-simon.guinot@sequanux.org> Return-path: Received: from vm1.sequanux.org ([188.165.36.56]:53197 "EHLO vm1.sequanux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757193Ab3LWNe1 (ORCPT ); Mon, 23 Dec 2013 08:34:27 -0500 Sender: linux-gpio-owner@vger.kernel.org List-Id: linux-gpio@vger.kernel.org To: Linus Walleij , Grant Likely Cc: linux-gpio@vger.kernel.org, Simon Guinot 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 --- drivers/gpio/gpio-f7188x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-f7188x.c b/drivers/gpio/gpio-f7188x.c index 9cb8320..fc3e98a 100644 --- a/drivers/gpio/gpio-f7188x.c +++ b/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, \ .base = _base, \ .ngpio = _ngpio, \ + .can_sleep = 1, \ }, \ .regbase = _regbase, \ } -- 1.8.5.1