From: Mark Brown Date: Wed, 3 Apr 2013 17:22:44 +0000 (+0100) Subject: ASoC: core: Merge Samsung fixes to avoid trivial context conflict X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=89cab4624a8c0ed81a1b74b6f8c884641cac5b9d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ASoC: core: Merge Samsung fixes to avoid trivial context conflict Merge branch 'fix/samsung' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-component to resolve trivial conflict Conflicts: sound/soc/samsung/i2s.c --- 89cab4624a8c0ed81a1b74b6f8c884641cac5b9d diff --cc sound/soc/samsung/i2s.c index efa73147dfb8,6bbeb0bf1a73..abbcbe4b429c --- a/sound/soc/samsung/i2s.c +++ b/sound/soc/samsung/i2s.c @@@ -1111,9 -1110,12 +1114,13 @@@ static int samsung_i2s_probe(struct pla if (samsung_dai_type == TYPE_SEC) { sec_dai = dev_get_drvdata(&pdev->dev); + if (!sec_dai) { + dev_err(&pdev->dev, "Unable to get drvdata\n"); + return -EFAULT; + } - snd_soc_register_dai(&sec_dai->pdev->dev, - &sec_dai->i2s_dai_drv); + snd_soc_register_component(&sec_dai->pdev->dev, + &samsung_i2s_component, + &sec_dai->i2s_dai_drv, 1); asoc_dma_platform_register(&pdev->dev); return 0; }