13 Aug
2014
13 Aug
'14
9:50 p.m.
[...]
+static int sst_media_dai_probe(struct snd_soc_dai *cpu_dai) +{
- struct sst_data *sst = dev_get_drvdata(cpu_dai->dev);
- snd_soc_dai_set_drvdata(cpu_dai, sst);
snd_soc_dai_set_drvdata does dev_set_drvdata(dai->dev, data) internally, so this function does:
dev_set_drvdata(cpu_dai->dev, dev_get_drvdata(cpu_dai->dev));
That's pretty much a noop.
- return 0;
+} static struct snd_soc_dai_driver sst_platform_dai[] = { {
- .probe = sst_media_dai_probe, .name = "media-cpu-dai", .ops = &sst_media_dai_ops, .playback = {