diff options
Diffstat (limited to 'sound/soc/jz4740/jz4740-i2s.c')
-rw-r--r-- | sound/soc/jz4740/jz4740-i2s.c | 14 |
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 | ||
395 | static struct snd_soc_dai_ops jz4740_i2s_dai_ops = { | 395 | static 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 | ||
522 | static int __init jz4740_i2s_init(void) | 522 | module_platform_driver(jz4740_i2s_driver); |
523 | { | ||
524 | return platform_driver_register(&jz4740_i2s_driver); | ||
525 | } | ||
526 | module_init(jz4740_i2s_init); | ||
527 | |||
528 | static void __exit jz4740_i2s_exit(void) | ||
529 | { | ||
530 | platform_driver_unregister(&jz4740_i2s_driver); | ||
531 | } | ||
532 | module_exit(jz4740_i2s_exit); | ||
533 | 523 | ||
534 | MODULE_AUTHOR("Lars-Peter Clausen, <lars@metafoo.de>"); | 524 | MODULE_AUTHOR("Lars-Peter Clausen, <lars@metafoo.de>"); |
535 | MODULE_DESCRIPTION("Ingenic JZ4740 SoC I2S driver"); | 525 | MODULE_DESCRIPTION("Ingenic JZ4740 SoC I2S driver"); |