Commit 5dc5e76b authored by Lukasz Majewski's avatar Lukasz Majewski Committed by Mark Brown

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