serial: max310x: Setup missing "can_sleep" field for GPIO
authorAlexander Shiyan <shc_work@mail.ru>
Wed, 21 Nov 2012 20:07:32 +0000 (00:07 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 23:38:44 +0000 (15:38 -0800)
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/max310x.c

index 3bb809d083aad3407c6330c1aecb092d6b1ade6b..a801f6872cad41764470c38eb51b52be94945f1d 100644 (file)
@@ -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;