From: Mark Brown Date: Thu, 28 May 2009 13:51:00 +0000 (+0100) Subject: ASoC: Initialise dev for the dummy S/PDIF DAI X-Git-Tag: v2.6.31-rc1~363^2~29^2~10 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=203350c1a8e23adf17fd9a96d8bfc7adf63c1ff6;p=linux.git ASoC: Initialise dev for the dummy S/PDIF DAI Also include the header to make sure the DAI is prototyped. Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/spdif_transciever.c b/sound/soc/codecs/spdif_transciever.c index 118e976b28ac..218b33adad90 100644 --- a/sound/soc/codecs/spdif_transciever.c +++ b/sound/soc/codecs/spdif_transciever.c @@ -19,10 +19,11 @@ #include #include +#include "spdif_transciever.h" + #define STUB_RATES SNDRV_PCM_RATE_8000_96000 #define STUB_FORMATS SNDRV_PCM_FMTBIT_S16_LE - struct snd_soc_dai dit_stub_dai = { .name = "DIT", .playback = { @@ -36,6 +37,7 @@ struct snd_soc_dai dit_stub_dai = { static int spdif_dit_probe(struct platform_device *pdev) { + dit_stub_dai.dev = &pdev->dev; return snd_soc_register_dai(&dit_stub_dai); }