]> Pileus Git - ~andy/linux/blobdiff - sound/soc/samsung/smdk_wm8580pcm.c
Merge branch 'topic/misc' into for-linus
[~andy/linux] / sound / soc / samsung / smdk_wm8580pcm.c
index 4b9c73477ce0d9e875256e4985ff78f70d5056ca..fab5322e9f055002a3acb8a1d6b0bae06f457f38 100644 (file)
@@ -8,6 +8,7 @@
  *  Free Software Foundation;  either version 2 of the  License, or (at your
  *  option) any later version.
  */
+#include <linux/module.h>
 #include <sound/soc.h>
 #include <sound/pcm_params.h>
 #include <sound/pcm.h>
@@ -142,6 +143,7 @@ static struct snd_soc_dai_link smdk_dai[] = {
 
 static struct snd_soc_card smdk_pcm = {
        .name = "SMDK-PCM",
+       .owner = THIS_MODULE,
        .dai_link = smdk_dai,
        .num_links = 2,
 };
@@ -187,19 +189,7 @@ static struct platform_driver snd_smdk_driver = {
        .remove = __devexit_p(snd_smdk_remove),
 };
 
-static int __init smdk_audio_init(void)
-{
-       return platform_driver_register(&snd_smdk_driver);
-}
-
-module_init(smdk_audio_init);
-
-static void __exit smdk_audio_exit(void)
-{
-       platform_driver_unregister(&snd_smdk_driver);
-}
-
-module_exit(smdk_audio_exit);
+module_platform_driver(snd_smdk_driver);
 
 MODULE_AUTHOR("Sangbeom Kim, <sbkim73@samsung.com>");
 MODULE_DESCRIPTION("ALSA SoC SMDK WM8580 for PCM");