diff options
Diffstat (limited to 'sound/soc/codecs/ad73311.c')
-rw-r--r-- | sound/soc/codecs/ad73311.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/sound/soc/codecs/ad73311.c b/sound/soc/codecs/ad73311.c index 37af8607b00a..b09289a1e55a 100644 --- a/sound/soc/codecs/ad73311.c +++ b/sound/soc/codecs/ad73311.c | |||
@@ -8,14 +8,10 @@ | |||
8 | * under the terms of the GNU General Public License as published by the | 8 | * under the terms of the GNU General Public License as published by the |
9 | * Free Software Foundation; either version 2 of the License, or (at your | 9 | * Free Software Foundation; either version 2 of the License, or (at your |
10 | * option) any later version. | 10 | * option) any later version. |
11 | * | ||
12 | * Revision history | ||
13 | * 25th Sep 2008 Initial version. | ||
14 | */ | 11 | */ |
15 | 12 | ||
16 | #include <linux/init.h> | 13 | #include <linux/init.h> |
17 | #include <linux/module.h> | 14 | #include <linux/module.h> |
18 | #include <linux/version.h> | ||
19 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
20 | #include <linux/device.h> | 16 | #include <linux/device.h> |
21 | #include <sound/core.h> | 17 | #include <sound/core.h> |
@@ -68,7 +64,7 @@ static int ad73311_soc_probe(struct platform_device *pdev) | |||
68 | goto pcm_err; | 64 | goto pcm_err; |
69 | } | 65 | } |
70 | 66 | ||
71 | ret = snd_soc_register_card(socdev); | 67 | ret = snd_soc_init_card(socdev); |
72 | if (ret < 0) { | 68 | if (ret < 0) { |
73 | printk(KERN_ERR "ad73311: failed to register card\n"); | 69 | printk(KERN_ERR "ad73311: failed to register card\n"); |
74 | goto register_err; | 70 | goto register_err; |
@@ -102,6 +98,18 @@ struct snd_soc_codec_device soc_codec_dev_ad73311 = { | |||
102 | }; | 98 | }; |
103 | EXPORT_SYMBOL_GPL(soc_codec_dev_ad73311); | 99 | EXPORT_SYMBOL_GPL(soc_codec_dev_ad73311); |
104 | 100 | ||
101 | static int __init ad73311_init(void) | ||
102 | { | ||
103 | return snd_soc_register_dai(&ad73311_dai); | ||
104 | } | ||
105 | module_init(ad73311_init); | ||
106 | |||
107 | static void __exit ad73311_exit(void) | ||
108 | { | ||
109 | snd_soc_unregister_dai(&ad73311_dai); | ||
110 | } | ||
111 | module_exit(ad73311_exit); | ||
112 | |||
105 | MODULE_DESCRIPTION("ASoC ad73311 driver"); | 113 | MODULE_DESCRIPTION("ASoC ad73311 driver"); |
106 | MODULE_AUTHOR("Cliff Cai "); | 114 | MODULE_AUTHOR("Cliff Cai "); |
107 | MODULE_LICENSE("GPL"); | 115 | MODULE_LICENSE("GPL"); |