diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2012-11-21 15:07:32 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-26 18:38:44 -0500 |
commit | 273a4b8a58840773730e0134fe1af11d399cb7a0 (patch) | |
tree | 23280bf60a173837847409ace9657849009d3f3f /drivers/tty/serial | |
parent | bc6835a41aea115d97a74d67dc95faa0bbc63d5f (diff) |
serial: max310x: Setup missing "can_sleep" field for GPIO
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r-- | drivers/tty/serial/max310x.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
1178 | s->gpio.set = max310x_gpio_set; | 1178 | s->gpio.set = max310x_gpio_set; |
1179 | s->gpio.base = pdata->gpio_base; | 1179 | s->gpio.base = pdata->gpio_base; |
1180 | s->gpio.ngpio = s->nr_gpio; | 1180 | s->gpio.ngpio = s->nr_gpio; |
1181 | s->gpio.can_sleep = 1; | ||
1181 | if (gpiochip_add(&s->gpio)) { | 1182 | if (gpiochip_add(&s->gpio)) { |
1182 | /* Indicate that we should not call gpiochip_remove */ | 1183 | /* Indicate that we should not call gpiochip_remove */ |
1183 | s->gpio.base = 0; | 1184 | s->gpio.base = 0; |