MLK-17743 ASoC: codecs: ak4458: Fix mute gpio mixed with pdn gpio

Fix bug when PDN gpio is requested instead of mute gpio.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
This commit is contained in:
Cosmin-Gabriel Samoila 2018-03-09 11:49:58 +02:00 committed by Jason Liu
parent fc7835533d
commit 87182bed1c

View file

@ -1131,7 +1131,7 @@ int ak4458_probe(struct device *dev, struct regmap *regmap)
ak4458->mute_gpio = of_get_named_gpio(np, "ak4458,mute_gpio", 0);
if (gpio_is_valid(ak4458->mute_gpio)) {
ret = devm_gpio_request_one(dev, ak4458->pdn_gpio,
ret = devm_gpio_request_one(dev, ak4458->mute_gpio,
GPIOF_OUT_INIT_LOW, "ak4458,mute");
if (ret) {
dev_err(dev, "unable to get mute gpio\n");