diff options
author | Mark Brown <broonie@linaro.org> | 2013-06-26 12:28:59 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-06-27 10:43:57 +0200 |
commit | 2105d63e09ebb8273cb09e70b8241c9f89aae544 (patch) | |
tree | 2d5531c0acafb3c93a2390d22c8904f50f9454da /sound/soc | |
parent | ASoC: psc-ac97: Use devm_ioremap_resource() (diff) | |
download | linux-2105d63e09ebb8273cb09e70b8241c9f89aae544.tar.xz linux-2105d63e09ebb8273cb09e70b8241c9f89aae544.zip |
ASoC: psc-ac97: Convert to module_platform_driver()
Acked-by: Manuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/au1x/psc-ac97.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sound/soc/au1x/psc-ac97.c b/sound/soc/au1x/psc-ac97.c index f5a392169338..a97ba1367b69 100644 --- a/sound/soc/au1x/psc-ac97.c +++ b/sound/soc/au1x/psc-ac97.c @@ -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"); |