diff options
Diffstat (limited to 'sound/soc/blackfin/bf5xx-i2s.c')
-rw-r--r-- | sound/soc/blackfin/bf5xx-i2s.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/sound/soc/blackfin/bf5xx-i2s.c b/sound/soc/blackfin/bf5xx-i2s.c index 00cc3e00b2fe..4dccf0374fe7 100644 --- a/sound/soc/blackfin/bf5xx-i2s.c +++ b/sound/soc/blackfin/bf5xx-i2s.c | |||
@@ -223,7 +223,7 @@ static int bf5xx_i2s_resume(struct snd_soc_dai *dai) | |||
223 | SNDRV_PCM_FMTBIT_S24_LE | \ | 223 | SNDRV_PCM_FMTBIT_S24_LE | \ |
224 | SNDRV_PCM_FMTBIT_S32_LE) | 224 | SNDRV_PCM_FMTBIT_S32_LE) |
225 | 225 | ||
226 | static struct snd_soc_dai_ops bf5xx_i2s_dai_ops = { | 226 | static const struct snd_soc_dai_ops bf5xx_i2s_dai_ops = { |
227 | .shutdown = bf5xx_i2s_shutdown, | 227 | .shutdown = bf5xx_i2s_shutdown, |
228 | .hw_params = bf5xx_i2s_hw_params, | 228 | .hw_params = bf5xx_i2s_hw_params, |
229 | .set_fmt = bf5xx_i2s_set_dai_fmt, | 229 | .set_fmt = bf5xx_i2s_set_dai_fmt, |
@@ -288,18 +288,7 @@ static struct platform_driver bfin_i2s_driver = { | |||
288 | }, | 288 | }, |
289 | }; | 289 | }; |
290 | 290 | ||
291 | static int __init bfin_i2s_init(void) | 291 | module_platform_driver(bfin_i2s_driver); |
292 | { | ||
293 | return platform_driver_register(&bfin_i2s_driver); | ||
294 | } | ||
295 | |||
296 | static void __exit bfin_i2s_exit(void) | ||
297 | { | ||
298 | platform_driver_unregister(&bfin_i2s_driver); | ||
299 | } | ||
300 | |||
301 | module_init(bfin_i2s_init); | ||
302 | module_exit(bfin_i2s_exit); | ||
303 | 292 | ||
304 | /* Module information */ | 293 | /* Module information */ |
305 | MODULE_AUTHOR("Cliff Cai"); | 294 | MODULE_AUTHOR("Cliff Cai"); |