summaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorRoland Stigge <stigge@antcom.de>2012-06-18 18:42:22 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-07-26 22:24:54 +0100
commitbbfc3280ad6701352383e305112b3b27e5b3106f (patch)
tree833f35e453430f962ec8514150c2db1de8152f4f /sound/soc
parent0a88f1f01c5f03f7a21a83aa52454aa930742418 (diff)
downloadkernel-common-bbfc3280ad6701352383e305112b3b27e5b3106f.tar.gz
kernel-common-bbfc3280ad6701352383e305112b3b27e5b3106f.tar.bz2
kernel-common-bbfc3280ad6701352383e305112b3b27e5b3106f.zip
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')
-rw-r--r--sound/soc/tegra/tegra_alc5632.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/tegra/tegra_alc5632.c b/sound/soc/tegra/tegra_alc5632.c
index d684df294c0c..e463529b38bb 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)
}
alc5632->gpio_hp_det = of_get_named_gpio(np, "nvidia,hp-det-gpios", 0);
- if (alc5632->gpio_hp_det == -ENODEV)
+ if (alc5632->gpio_hp_det == -EPROBE_DEFER)
return -EPROBE_DEFER;
ret = snd_soc_of_parse_card_name(card, "nvidia,model");