ASoC: core: Merge Samsung fixes to avoid trivial context conflict
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 3 Apr 2013 17:22:44 +0000 (18:22 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 3 Apr 2013 17:22:51 +0000 (18:22 +0100)
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

1  2 
sound/soc/samsung/i2s.c

index efa73147dfb8be9472f5d2d724dff71bc144a5fc,6bbeb0bf1a73a58fa9e3a573e00655dc3e8763d2..abbcbe4b429c48c96c8d859b3f7035a92d05a474
@@@ -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);
 -              snd_soc_register_dai(&sec_dai->pdev->dev,
 -                      &sec_dai->i2s_dai_drv);
+               if (!sec_dai) {
+                       dev_err(&pdev->dev, "Unable to get drvdata\n");
+                       return -EFAULT;
+               }
 +              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;
        }