Skip to content

Commit

Permalink
sound: tegra_alc5632: Adjust to of_get_named_gpio() change
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roland Stigge authored and Mark Brown committed Jul 26, 2012
1 parent 0a88f1f commit bbfc328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/tegra/tegra_alc5632.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit bbfc328

Please sign in to comment.