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: Troy Kisky <troy.kisky@boundarydevices.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
7b3b6e4203
commit
dce908e26f
1 changed files with 0 additions and 6 deletions
|
@ -822,14 +822,8 @@ static DEVICE_ATTR(dapm_widget, 0444, dapm_widget_show, NULL);
|
||||||
|
|
||||||
int snd_soc_dapm_sys_add(struct device *dev)
|
int snd_soc_dapm_sys_add(struct device *dev)
|
||||||
{
|
{
|
||||||
int ret;
|
|
||||||
|
|
||||||
if (!dapm_status)
|
if (!dapm_status)
|
||||||
return 0;
|
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);
|
return device_create_file(dev, &dev_attr_dapm_widget);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue