From: Alexander Shiyan Date: Wed, 21 Nov 2012 20:07:32 +0000 (+0400) Subject: serial: max310x: Setup missing "can_sleep" field for GPIO X-Git-Tag: firefly_0821_release~3680^2~1518^2~12 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=273a4b8a58840773730e0134fe1af11d399cb7a0;p=firefly-linux-kernel-4.4.55.git serial: max310x: Setup missing "can_sleep" field for GPIO Signed-off-by: Alexander Shiyan Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/max310x.c b/drivers/tty/serial/max310x.c index 3bb809d083aa..a801f6872cad 100644 --- a/drivers/tty/serial/max310x.c +++ b/drivers/tty/serial/max310x.c @@ -1178,6 +1178,7 @@ static int max310x_probe(struct spi_device *spi) s->gpio.set = max310x_gpio_set; s->gpio.base = pdata->gpio_base; s->gpio.ngpio = s->nr_gpio; + s->gpio.can_sleep = 1; if (gpiochip_add(&s->gpio)) { /* Indicate that we should not call gpiochip_remove */ s->gpio.base = 0;