mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
Merge remote-tracking branch 'asoc/fix/core' into asoc-linus
This commit is contained in:
commit
60886e16b4
1 changed files with 1 additions and 3 deletions
|
|
@ -3908,10 +3908,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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue