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: Lukasz Majewski <lukma@denx.de> Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/20221216094624.3849278-1-lukma@denx.de Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Родитель
b5ba646142
Коммит
5dc5e76b4c
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче