diff options
author | Roland Stigge <stigge@antcom.de> | 2012-06-18 12:42:22 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-07-26 17:24:54 -0400 |
commit | bbfc3280ad6701352383e305112b3b27e5b3106f (patch) | |
tree | 833f35e453430f962ec8514150c2db1de8152f4f /sound/soc/tegra | |
parent | 0a88f1f01c5f03f7a21a83aa52454aa930742418 (diff) |
sound: tegra_alc5632: Adjust to of_get_named_gpio() change
of_get_named_gpio() was changed to return -EPROBE_DEFER in case of
gpios not probed yet. This patch adjusts tegra_alc5632 to this.
Signed-off-by: Roland Stigge <stigge@antcom.de>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/tegra')
-rw-r--r-- | sound/soc/tegra/tegra_alc5632.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/tegra/tegra_alc5632.c b/sound/soc/tegra/tegra_alc5632.c index d684df294c0..e463529b38b 100644 --- a/sound/soc/tegra/tegra_alc5632.c +++ b/sound/soc/tegra/tegra_alc5632.c | |||
@@ -177,7 +177,7 @@ static __devinit int tegra_alc5632_probe(struct platform_device *pdev) | |||
177 | } | 177 | } |
178 | 178 | ||
179 | alc5632->gpio_hp_det = of_get_named_gpio(np, "nvidia,hp-det-gpios", 0); | 179 | alc5632->gpio_hp_det = of_get_named_gpio(np, "nvidia,hp-det-gpios", 0); |
180 | if (alc5632->gpio_hp_det == -ENODEV) | 180 | if (alc5632->gpio_hp_det == -EPROBE_DEFER) |
181 | return -EPROBE_DEFER; | 181 | return -EPROBE_DEFER; |
182 | 182 | ||
183 | ret = snd_soc_of_parse_card_name(card, "nvidia,model"); | 183 | ret = snd_soc_of_parse_card_name(card, "nvidia,model"); |