diff options
Diffstat (limited to 'sound/soc/ep93xx/ep93xx-ac97.c')
-rw-r--r-- | sound/soc/ep93xx/ep93xx-ac97.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sound/soc/ep93xx/ep93xx-ac97.c b/sound/soc/ep93xx/ep93xx-ac97.c index 3cd6158d83e1..0678637abd66 100644 --- a/sound/soc/ep93xx/ep93xx-ac97.c +++ b/sound/soc/ep93xx/ep93xx-ac97.c | |||
@@ -330,7 +330,7 @@ static int ep93xx_ac97_startup(struct snd_pcm_substream *substream, | |||
330 | return 0; | 330 | return 0; |
331 | } | 331 | } |
332 | 332 | ||
333 | static struct snd_soc_dai_ops ep93xx_ac97_dai_ops = { | 333 | static const struct snd_soc_dai_ops ep93xx_ac97_dai_ops = { |
334 | .startup = ep93xx_ac97_startup, | 334 | .startup = ep93xx_ac97_startup, |
335 | .trigger = ep93xx_ac97_trigger, | 335 | .trigger = ep93xx_ac97_trigger, |
336 | }; | 336 | }; |
@@ -449,17 +449,7 @@ static struct platform_driver ep93xx_ac97_driver = { | |||
449 | }, | 449 | }, |
450 | }; | 450 | }; |
451 | 451 | ||
452 | static int __init ep93xx_ac97_init(void) | 452 | module_platform_driver(ep93xx_ac97_driver); |
453 | { | ||
454 | return platform_driver_register(&ep93xx_ac97_driver); | ||
455 | } | ||
456 | module_init(ep93xx_ac97_init); | ||
457 | |||
458 | static void __exit ep93xx_ac97_exit(void) | ||
459 | { | ||
460 | platform_driver_unregister(&ep93xx_ac97_driver); | ||
461 | } | ||
462 | module_exit(ep93xx_ac97_exit); | ||
463 | 453 | ||
464 | MODULE_DESCRIPTION("EP93xx AC97 ASoC Driver"); | 454 | MODULE_DESCRIPTION("EP93xx AC97 ASoC Driver"); |
465 | MODULE_AUTHOR("Mika Westerberg <mika.westerberg@iki.fi>"); | 455 | MODULE_AUTHOR("Mika Westerberg <mika.westerberg@iki.fi>"); |