diff options
Diffstat (limited to 'sound/soc/soc-jack.c')
-rw-r--r-- | sound/soc/soc-jack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-jack.c b/sound/soc/soc-jack.c index 99dbaf756b44..4579ee090bbf 100644 --- a/sound/soc/soc-jack.c +++ b/sound/soc/soc-jack.c | |||
@@ -240,7 +240,7 @@ static void snd_soc_jack_gpio_detect(struct snd_soc_jack_gpio *gpio) | |||
240 | int enable; | 240 | int enable; |
241 | int report; | 241 | int report; |
242 | 242 | ||
243 | enable = gpio_get_value(gpio->gpio); | 243 | enable = gpio_get_value_cansleep(gpio->gpio); |
244 | if (gpio->invert) | 244 | if (gpio->invert) |
245 | enable = !enable; | 245 | enable = !enable; |
246 | 246 | ||