diff options
Diffstat (limited to 'sound/soc/samsung/spdif.c')
-rw-r--r-- | sound/soc/samsung/spdif.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sound/soc/samsung/spdif.c b/sound/soc/samsung/spdif.c index 468cff1bb1af..a5a56a120345 100644 --- a/sound/soc/samsung/spdif.c +++ b/sound/soc/samsung/spdif.c | |||
@@ -334,7 +334,7 @@ static int spdif_resume(struct snd_soc_dai *cpu_dai) | |||
334 | #define spdif_resume NULL | 334 | #define spdif_resume NULL |
335 | #endif | 335 | #endif |
336 | 336 | ||
337 | static struct snd_soc_dai_ops spdif_dai_ops = { | 337 | static const struct snd_soc_dai_ops spdif_dai_ops = { |
338 | .set_sysclk = spdif_set_sysclk, | 338 | .set_sysclk = spdif_set_sysclk, |
339 | .trigger = spdif_trigger, | 339 | .trigger = spdif_trigger, |
340 | .hw_params = spdif_hw_params, | 340 | .hw_params = spdif_hw_params, |
@@ -483,17 +483,7 @@ static struct platform_driver samsung_spdif_driver = { | |||
483 | }, | 483 | }, |
484 | }; | 484 | }; |
485 | 485 | ||
486 | static int __init spdif_init(void) | 486 | module_platform_driver(samsung_spdif_driver); |
487 | { | ||
488 | return platform_driver_register(&samsung_spdif_driver); | ||
489 | } | ||
490 | module_init(spdif_init); | ||
491 | |||
492 | static void __exit spdif_exit(void) | ||
493 | { | ||
494 | platform_driver_unregister(&samsung_spdif_driver); | ||
495 | } | ||
496 | module_exit(spdif_exit); | ||
497 | 487 | ||
498 | MODULE_AUTHOR("Seungwhan Youn, <sw.youn@samsung.com>"); | 488 | MODULE_AUTHOR("Seungwhan Youn, <sw.youn@samsung.com>"); |
499 | MODULE_DESCRIPTION("Samsung S/PDIF Controller Driver"); | 489 | MODULE_DESCRIPTION("Samsung S/PDIF Controller Driver"); |