summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/pcm3008.c
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-08-15 11:53:28 +0100
committerMark Brown <broonie@linaro.org>2013-08-18 16:40:00 +0100
commitea67afc3fdbe9196d76ee79503a3809a54300b5a (patch)
tree2c20c15e004ecd24ef55e170bf3b200760cf3f3c /sound/soc/codecs/pcm3008.c
parentd57a79acc77160089e191b6c78e9d42bed517a62 (diff)
ASoC: pcm3008: Use gpio_set_value_cansleep()
We don't set the GPIO values from atomic context so support GPIOs that can't be controlled from atomic context. Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/pcm3008.c')
-rw-r--r--sound/soc/codecs/pcm3008.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/pcm3008.c b/sound/soc/codecs/pcm3008.c
index b883f99d6f9f..8b9b378bc0a7 100644
--- a/sound/soc/codecs/pcm3008.c
+++ b/sound/soc/codecs/pcm3008.c
@@ -54,8 +54,8 @@ static int pcm3008_soc_suspend(struct snd_soc_codec *codec)
{
struct pcm3008_setup_data *setup = codec->dev->platform_data;
- gpio_set_value(setup->pdad_pin, 0);
- gpio_set_value(setup->pdda_pin, 0);
+ gpio_set_value_cansleep(setup->pdad_pin, 0);
+ gpio_set_value_cansleep(setup->pdda_pin, 0);
return 0;
}
@@ -64,8 +64,8 @@ static int pcm3008_soc_resume(struct snd_soc_codec *codec)
{
struct pcm3008_setup_data *setup = codec->dev->platform_data;
- gpio_set_value(setup->pdad_pin, 1);
- gpio_set_value(setup->pdda_pin, 1);
+ gpio_set_value_cansleep(setup->pdad_pin, 1);
+ gpio_set_value_cansleep(setup->pdda_pin, 1);
return 0;
}