mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
serial: max310x: Setup missing "can_sleep" field for GPIO
Signed-off-by: Alexander Shiyan <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
bc6835a41a
commit
273a4b8a58
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue