diff options
Diffstat (limited to 'sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c')
-rw-r--r-- | sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c b/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c index 5e4fd46b720..c42d5f00b0e 100644 --- a/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c +++ b/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c | |||
@@ -78,6 +78,7 @@ static struct snd_soc_dai_link simtec_dai_aic23 = { | |||
78 | /* simtec audio machine driver */ | 78 | /* simtec audio machine driver */ |
79 | static struct snd_soc_card snd_soc_machine_simtec_aic23 = { | 79 | static struct snd_soc_card snd_soc_machine_simtec_aic23 = { |
80 | .name = "Simtec", | 80 | .name = "Simtec", |
81 | .owner = THIS_MODULE, | ||
81 | .dai_link = &simtec_dai_aic23, | 82 | .dai_link = &simtec_dai_aic23, |
82 | .num_links = 1, | 83 | .num_links = 1, |
83 | 84 | ||
@@ -92,7 +93,7 @@ static int __devinit simtec_audio_tlv320aic23_probe(struct platform_device *pd) | |||
92 | return simtec_audio_core_probe(pd, &snd_soc_machine_simtec_aic23); | 93 | return simtec_audio_core_probe(pd, &snd_soc_machine_simtec_aic23); |
93 | } | 94 | } |
94 | 95 | ||
95 | static struct platform_driver simtec_audio_tlv320aic23_platdrv = { | 96 | static struct platform_driver simtec_audio_tlv320aic23_driver = { |
96 | .driver = { | 97 | .driver = { |
97 | .owner = THIS_MODULE, | 98 | .owner = THIS_MODULE, |
98 | .name = "s3c24xx-simtec-tlv320aic23", | 99 | .name = "s3c24xx-simtec-tlv320aic23", |
@@ -102,21 +103,9 @@ static struct platform_driver simtec_audio_tlv320aic23_platdrv = { | |||
102 | .remove = __devexit_p(simtec_audio_remove), | 103 | .remove = __devexit_p(simtec_audio_remove), |
103 | }; | 104 | }; |
104 | 105 | ||
105 | MODULE_ALIAS("platform:s3c24xx-simtec-tlv320aic23"); | 106 | module_platform_driver(simtec_audio_tlv320aic23_driver); |
106 | |||
107 | static int __init simtec_tlv320aic23_modinit(void) | ||
108 | { | ||
109 | return platform_driver_register(&simtec_audio_tlv320aic23_platdrv); | ||
110 | } | ||
111 | |||
112 | static void __exit simtec_tlv320aic23_modexit(void) | ||
113 | { | ||
114 | platform_driver_unregister(&simtec_audio_tlv320aic23_platdrv); | ||
115 | } | ||
116 | |||
117 | module_init(simtec_tlv320aic23_modinit); | ||
118 | module_exit(simtec_tlv320aic23_modexit); | ||
119 | 107 | ||
108 | MODULE_ALIAS("platform:s3c24xx-simtec-tlv320aic23"); | ||
120 | MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>"); | 109 | MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>"); |
121 | MODULE_DESCRIPTION("ALSA SoC Simtec Audio support"); | 110 | MODULE_DESCRIPTION("ALSA SoC Simtec Audio support"); |
122 | MODULE_LICENSE("GPL"); | 111 | MODULE_LICENSE("GPL"); |