提交 dce908e2 编写于 作者: T Troy Kisky 提交者: Takashi Iwai

ALSA: SOC: Fix setting codec register with debugfs filesystem merge error

Call device_create_file only once in snd_soc_dapm_sys_add function.
Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 7b3b6e42
......@@ -822,14 +822,8 @@ static DEVICE_ATTR(dapm_widget, 0444, dapm_widget_show, NULL);
int snd_soc_dapm_sys_add(struct device *dev)
{
int ret;
if (!dapm_status)
return 0;
ret = device_create_file(dev, &dev_attr_dapm_widget);
if (ret != 0)
return ret;
return device_create_file(dev, &dev_attr_dapm_widget);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册