diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-23 10:20:13 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-25 08:03:03 -0500 |
commit | e00c3f555f1f404b38d44bcfe19db674a92c809a (patch) | |
tree | be5593a830a07919b0bdc759424f031138c0b0cc /sound/soc/samsung/s3c24xx_simtec_hermes.c | |
parent | 29515d62db425796d82e2e2d9209a44b9e324ff4 (diff) |
ASoC: Convert Samsung directory to module_platform_driver
Saves some boilerplate code.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Sangbeom Kim <sbkim73@samsung.com>
Diffstat (limited to 'sound/soc/samsung/s3c24xx_simtec_hermes.c')
-rw-r--r-- | sound/soc/samsung/s3c24xx_simtec_hermes.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/sound/soc/samsung/s3c24xx_simtec_hermes.c b/sound/soc/samsung/s3c24xx_simtec_hermes.c index d125e79baf7f..502798100f21 100644 --- a/sound/soc/samsung/s3c24xx_simtec_hermes.c +++ b/sound/soc/samsung/s3c24xx_simtec_hermes.c | |||
@@ -114,21 +114,9 @@ static struct platform_driver simtec_audio_hermes_platdrv = { | |||
114 | .remove = __devexit_p(simtec_audio_remove), | 114 | .remove = __devexit_p(simtec_audio_remove), |
115 | }; | 115 | }; |
116 | 116 | ||
117 | MODULE_ALIAS("platform:s3c24xx-simtec-hermes-snd"); | 117 | module_platform_driver(simtec_audio_hermes_platdrv); |
118 | |||
119 | static int __init simtec_hermes_modinit(void) | ||
120 | { | ||
121 | return platform_driver_register(&simtec_audio_hermes_platdrv); | ||
122 | } | ||
123 | |||
124 | static void __exit simtec_hermes_modexit(void) | ||
125 | { | ||
126 | platform_driver_unregister(&simtec_audio_hermes_platdrv); | ||
127 | } | ||
128 | |||
129 | module_init(simtec_hermes_modinit); | ||
130 | module_exit(simtec_hermes_modexit); | ||
131 | 118 | ||
119 | MODULE_ALIAS("platform:s3c24xx-simtec-hermes-snd"); | ||
132 | MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>"); | 120 | MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>"); |
133 | MODULE_DESCRIPTION("ALSA SoC Simtec Audio support"); | 121 | MODULE_DESCRIPTION("ALSA SoC Simtec Audio support"); |
134 | MODULE_LICENSE("GPL"); | 122 | MODULE_LICENSE("GPL"); |