Merge remote-tracking branch 'asoc/topic/dmic' into asoc-core

This commit is contained in:
Mark Brown
2013-08-27 15:40:03 +01:00
1700 changed files with 18580 additions and 103059 deletions

View File

@@ -3860,10 +3860,8 @@ int snd_soc_add_platform(struct device *dev, struct snd_soc_platform *platform,
{
/* create platform component name */
platform->name = fmt_single_name(dev, &platform->id);
if (platform->name == NULL) {
kfree(platform);
if (platform->name == NULL)
return -ENOMEM;
}
platform->dev = dev;
platform->driver = platform_drv;