diff options
author | Mark Brown <broonie@linaro.org> | 2013-06-26 12:30:37 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-06-27 10:44:04 +0200 |
commit | d8b51c11ff5a70244753ba60abfd47088cf4dcd4 (patch) | |
tree | 08985ecfe9a3903a2decf56a99ed1c2a50ec1489 /sound/soc/au1x | |
parent | ASoC: psc-ac97: Convert to module_platform_driver() (diff) | |
download | linux-d8b51c11ff5a70244753ba60abfd47088cf4dcd4.tar.xz linux-d8b51c11ff5a70244753ba60abfd47088cf4dcd4.zip |
ASoC: ac97c: Use module_platform_driver()
Acked-by: Manuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/au1x')
-rw-r--r-- | sound/soc/au1x/ac97c.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sound/soc/au1x/ac97c.c b/sound/soc/au1x/ac97c.c index 44b8dcecf571..a51dabe20cbb 100644 --- a/sound/soc/au1x/ac97c.c +++ b/sound/soc/au1x/ac97c.c @@ -338,19 +338,7 @@ static struct platform_driver au1xac97c_driver = { .remove = au1xac97c_drvremove, }; -static int __init au1xac97c_load(void) -{ - ac97c_workdata = NULL; - return platform_driver_register(&au1xac97c_driver); -} - -static void __exit au1xac97c_unload(void) -{ - platform_driver_unregister(&au1xac97c_driver); -} - -module_init(au1xac97c_load); -module_exit(au1xac97c_unload); +module_platform_driver(&au1xac97c_driver); MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("Au1000/1500/1100 AC97C ASoC driver"); |