ASoC: psc-ac97: Convert to module_platform_driver()
authorMark Brown <broonie@linaro.org>
Wed, 26 Jun 2013 10:28:59 +0000 (11:28 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 27 Jun 2013 08:43:57 +0000 (09:43 +0100)
Acked-by: Manuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/au1x/psc-ac97.c

index f5a392169338d080ca3b6d9effbbf42c5d0d459b..a97ba1367b690540c488885bee609254e70e7bbc 100644 (file)
@@ -497,19 +497,7 @@ static struct platform_driver au1xpsc_ac97_driver = {
        .remove         = au1xpsc_ac97_drvremove,
 };
 
-static int __init au1xpsc_ac97_load(void)
-{
-       au1xpsc_ac97_workdata = NULL;
-       return platform_driver_register(&au1xpsc_ac97_driver);
-}
-
-static void __exit au1xpsc_ac97_unload(void)
-{
-       platform_driver_unregister(&au1xpsc_ac97_driver);
-}
-
-module_init(au1xpsc_ac97_load);
-module_exit(au1xpsc_ac97_unload);
+module_platform_driver(au1xpsc_ac97_driver);
 
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("Au12x0/Au1550 PSC AC97 ALSA ASoC audio driver");