aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/jz4740/jz4740-i2s.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/jz4740/jz4740-i2s.c')
-rw-r--r--sound/soc/jz4740/jz4740-i2s.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/sound/soc/jz4740/jz4740-i2s.c b/sound/soc/jz4740/jz4740-i2s.c
index cd22a54b2f14..a5af7c42e62b 100644
--- a/sound/soc/jz4740/jz4740-i2s.c
+++ b/sound/soc/jz4740/jz4740-i2s.c
@@ -392,7 +392,7 @@ static int jz4740_i2s_dai_remove(struct snd_soc_dai *dai)
392 return 0; 392 return 0;
393} 393}
394 394
395static struct snd_soc_dai_ops jz4740_i2s_dai_ops = { 395static const struct snd_soc_dai_ops jz4740_i2s_dai_ops = {
396 .startup = jz4740_i2s_startup, 396 .startup = jz4740_i2s_startup,
397 .shutdown = jz4740_i2s_shutdown, 397 .shutdown = jz4740_i2s_shutdown,
398 .trigger = jz4740_i2s_trigger, 398 .trigger = jz4740_i2s_trigger,
@@ -519,17 +519,7 @@ static struct platform_driver jz4740_i2s_driver = {
519 }, 519 },
520}; 520};
521 521
522static int __init jz4740_i2s_init(void) 522module_platform_driver(jz4740_i2s_driver);
523{
524 return platform_driver_register(&jz4740_i2s_driver);
525}
526module_init(jz4740_i2s_init);
527
528static void __exit jz4740_i2s_exit(void)
529{
530 platform_driver_unregister(&jz4740_i2s_driver);
531}
532module_exit(jz4740_i2s_exit);
533 523
534MODULE_AUTHOR("Lars-Peter Clausen, <lars@metafoo.de>"); 524MODULE_AUTHOR("Lars-Peter Clausen, <lars@metafoo.de>");
535MODULE_DESCRIPTION("Ingenic JZ4740 SoC I2S driver"); 525MODULE_DESCRIPTION("Ingenic JZ4740 SoC I2S driver");