Skip to content

Commit 326261b

Browse files
john-cabajmarcan
authored andcommitted
fixup! ASoC: card: Let 'fixup_controls' return errors
fixup_controls() was modified in 25fb334 to return error code. One reference in the MediaTek MT8188 still returned void. Signed-off-by: John Cabaj <[email protected]>
1 parent db8dbbc commit 326261b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sound/soc/mediatek/mt8188/mt8188-mt6359.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ static struct snd_kcontrol *ctl_find(struct snd_card *card, const char *name)
979979
return snd_ctl_find_id(card, &sid);
980980
}
981981

982-
static void mt8188_fixup_controls(struct snd_soc_card *card)
982+
static int mt8188_fixup_controls(struct snd_soc_card *card)
983983
{
984984
struct mt8188_mt6359_priv *priv = snd_soc_card_get_drvdata(card);
985985
struct mt8188_card_data *card_data = (struct mt8188_card_data *)priv->private_data;
@@ -1001,6 +1001,8 @@ static void mt8188_fixup_controls(struct snd_soc_card *card)
10011001
else
10021002
dev_warn(card->dev, "Cannot find ctl : Headphone Switch\n");
10031003
}
1004+
1005+
return 0;
10041006
}
10051007

10061008
static struct snd_soc_card mt8188_mt6359_soc_card = {

0 commit comments

Comments
 (0)