diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-24 05:07:55 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-24 11:43:59 +0100 |
commit | ee18f6314fa16376d53c29ecf9704011f2ce8180 (patch) | |
tree | da5f090065b5b31fe74f349cdb62c335d79faf66 /sound/soc/ep93xx/ep93xx-i2s.c | |
parent | ASoC: fsi-ak4642: modify specification method of FSI / ak464x (diff) | |
download | linux-ee18f6314fa16376d53c29ecf9704011f2ce8180.tar.xz linux-ee18f6314fa16376d53c29ecf9704011f2ce8180.zip |
ASoC: Convert ep93xx directory to module_platform_driver
Factor out some boilerplate code.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Mika Westerberg <mika.westerberg@iki.fi>
Acked-by: Alexander Sverdlin <subaparts@yandex.ru>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/ep93xx/ep93xx-i2s.c')
-rw-r--r-- | sound/soc/ep93xx/ep93xx-i2s.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/soc/ep93xx/ep93xx-i2s.c b/sound/soc/ep93xx/ep93xx-i2s.c index 3dba128cc6f1..f7a62348e3fe 100644 --- a/sound/soc/ep93xx/ep93xx-i2s.c +++ b/sound/soc/ep93xx/ep93xx-i2s.c @@ -464,18 +464,7 @@ static struct platform_driver ep93xx_i2s_driver = { }, }; -static int __init ep93xx_i2s_init(void) -{ - return platform_driver_register(&ep93xx_i2s_driver); -} - -static void __exit ep93xx_i2s_exit(void) -{ - platform_driver_unregister(&ep93xx_i2s_driver); -} - -module_init(ep93xx_i2s_init); -module_exit(ep93xx_i2s_exit); +module_platform_driver(ep93xx_i2s_driver); MODULE_ALIAS("platform:ep93xx-i2s"); MODULE_AUTHOR("Ryan Mallon"); |