diff options
Diffstat (limited to 'sound/soc/fsl/pcm030-audio-fabric.c')
-rw-r--r-- | sound/soc/fsl/pcm030-audio-fabric.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sound/soc/fsl/pcm030-audio-fabric.c b/sound/soc/fsl/pcm030-audio-fabric.c index ba4d85e317e..b3af55dcde9 100644 --- a/sound/soc/fsl/pcm030-audio-fabric.c +++ b/sound/soc/fsl/pcm030-audio-fabric.c | |||
@@ -31,8 +31,6 @@ | |||
31 | 31 | ||
32 | #define DRV_NAME "pcm030-audio-fabric" | 32 | #define DRV_NAME "pcm030-audio-fabric" |
33 | 33 | ||
34 | static struct snd_soc_card card; | ||
35 | |||
36 | static struct snd_soc_dai_link pcm030_fabric_dai[] = { | 34 | static struct snd_soc_dai_link pcm030_fabric_dai[] = { |
37 | { | 35 | { |
38 | .name = "AC97", | 36 | .name = "AC97", |
@@ -52,6 +50,13 @@ static struct snd_soc_dai_link pcm030_fabric_dai[] = { | |||
52 | }, | 50 | }, |
53 | }; | 51 | }; |
54 | 52 | ||
53 | static struct snd_soc_card card = { | ||
54 | .name = "pcm030", | ||
55 | .owner = THIS_MODULE, | ||
56 | .dai_link = pcm030_fabric_dai, | ||
57 | .num_links = ARRAY_SIZE(pcm030_fabric_dai), | ||
58 | }; | ||
59 | |||
55 | static __init int pcm030_fabric_init(void) | 60 | static __init int pcm030_fabric_init(void) |
56 | { | 61 | { |
57 | struct platform_device *pdev; | 62 | struct platform_device *pdev; |
@@ -60,11 +65,6 @@ static __init int pcm030_fabric_init(void) | |||
60 | if (!of_machine_is_compatible("phytec,pcm030")) | 65 | if (!of_machine_is_compatible("phytec,pcm030")) |
61 | return -ENODEV; | 66 | return -ENODEV; |
62 | 67 | ||
63 | |||
64 | card.name = "pcm030"; | ||
65 | card.dai_link = pcm030_fabric_dai; | ||
66 | card.num_links = ARRAY_SIZE(pcm030_fabric_dai); | ||
67 | |||
68 | pdev = platform_device_alloc("soc-audio", 1); | 68 | pdev = platform_device_alloc("soc-audio", 1); |
69 | if (!pdev) { | 69 | if (!pdev) { |
70 | pr_err("pcm030_fabric_init: platform_device_alloc() failed\n"); | 70 | pr_err("pcm030_fabric_init: platform_device_alloc() failed\n"); |