Skip to content
Snippets Groups Projects
Unverified Commit 5dc5e76b authored by Lukasz Majewski's avatar Lukasz Majewski Committed by Mark Brown
Browse files

ASoC: wm8940: Remove warning when no plat data present


The lack of platform data in the contemporary Linux
shall not be the reason to display warnings to the
kernel logs.

Signed-off-by: default avatarLukasz Majewski <lukma@denx.de>
Acked-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20221216094624.3849278-1-lukma@denx.de


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent b5ba6461
No related branches found
No related tags found
No related merge requests found
......@@ -709,9 +709,7 @@ static int wm8940_probe(struct snd_soc_component *component)
if (ret < 0)
return ret;
if (!pdata)
dev_warn(component->dev, "No platform data supplied\n");
else {
if (pdata) {
reg = snd_soc_component_read(component, WM8940_OUTPUTCTL);
ret = snd_soc_component_write(component, WM8940_OUTPUTCTL, reg | pdata->vroi);
if (ret < 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment